Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to install all required Software Updates' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to install all required Software Updates
Authored by: macpretender on Oct 24, '08 08:14:10AM

I'm very new to creating shell scripts but am pleased that after reading through this script, I pretty much understand how it works and what it is doing. However, I cannot seem to get it to run.

I have created the Textedit document containing the script, saved it in my newly created /Library/Management folder as initswupdater.sh and ran chmod a+x initswupdater.sh from Terminal to make it executable. However, when I run the command: "sudo /Library/Management/initswupdater.sh", I get the message "No such file or directory".

I can browse to Macintosh HD/Library/Management and see that the initswupdater.sh file is located there. So I know it exists. Any ideas what I could be doing wrong?

Thanks for your help!!



[ Reply to This | # ]
A script to install all required Software Updates
Authored by: phillymjs on Nov 13, '08 07:12:40AM

I did a little Googling and it looks to me like this issue is not because the script can't be found, i think it's more an issue with finding the shell. Do other shell scripts run?

Check the first line of the script and make sure you've got #!/bin/sh there, and look in your /bin directory to make sure sh is still in there.

If all else fails, try changing the script from #!/bin/sh to #!/bin/bash.

---
Need Mac support for a business in the Philadelphia, PA metro area? Contact me.



[ Reply to This | # ]