How to make this script

Discussion in 'Mac Programming' started by Dynamyk, Nov 23, 2007.

  1. macrumors 6502a

    Dynamyk

    Joined:
    Jul 8, 2005
    Location:
    Toronto
    #1
    #!/bin/sh
    sudo /Library/StartupItems/Parallels/Parallels stop
    sudo rm -rf /Library/Parallels
    sudo rm -rf /Library/Receipts/Parallels.pkg
    sudo rm -rf /Applications/Parallels.app
    sudo rm -rf /Library/StartupItems/Parallels
    sudo rm -rf ~/Library/Preferences/com.parallels.Parallels.plist
    sudo rm -rf ~/Library/Parallels
    sudo rm -rf ~/.parallels_settings>

    I'm trying to uninstall Paralells fully and someone told me to run this as a shell script but i have NO clue what that means or how to go about it. Can anyone tell me how to do this from scratch
     
  2. macrumors newbie

    Joined:
    Aug 29, 2007
    #2
    Easy

    It already is a shell script. Paste those lines into a file, rename the file something that describes the task (eg 'RemoveParallels.csh') and then make the file executable. To do that open up the terminal application, cd to the directory where the file is and type:

    chmod 755 RemoveParallels.csh

    And you know have a shell script. Want to make it run? In that directory, type:

    ./RemoveParallels.csh

    And your machine will execute the lines in that file one by one.
    Good luck.
     
  3. Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #3
    Does the included uninstaller not get rid of these then.
     
  4. macrumors 68020

    Krevnik

    Joined:
    Sep 8, 2003
    #4
    An easier way to do that is paste the text into a file, name it something (<something>.sh), and then in the terminal, type 'sh ' (with the space) and then drag the file into the terminal window.
     
  5. macrumors 6502a

    solaris

    Joined:
    Apr 19, 2004
    Location:
    Oslo, Norway
    #5
    1. Open Terminal.app
    2. Paste all command lines into Terminal
    Code:
    sudo /Library/StartupItems/Parallels/Parallels stop
    sudo rm -rf /Library/Parallels
    sudo rm -rf /Library/Receipts/Parallels.pkg
    sudo rm -rf /Applications/Parallels.app
    sudo rm -rf /Library/StartupItems/Parallels
    sudo rm -rf ~/Library/Preferences/com.parallels.Parallels.plist
    sudo rm -rf ~/Library/Parallels
    sudo rm -rf ~/.parallels_settings
    3. Press Enter
     

Share This Page