PDA

View Full Version : How to make this script




Dynamyk
Nov 23, 2007, 03:16 PM
#!/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



chrisz
Nov 23, 2007, 07:11 PM
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.

xUKHCx
Nov 23, 2007, 07:16 PM
Does the included uninstaller not get rid of these then.

Krevnik
Nov 23, 2007, 11:12 PM
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.

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.

solaris
Nov 24, 2007, 01:22 AM
1. Open Terminal.app
2. Paste all command lines into Terminalsudo /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