- Joined
- Feb 10, 2011
- Messages
- 7
- Reaction score
- 0
- Points
- 1
- Location
- Scarborough, England
Hi
A section of script I have been working on was working fine yesterday and today has stopped working with out any changes being made. The two lines in question are nothing fancy:
When I run the script in terminal it returns
": command not founde 2:"
followed by a description of the usage of pmset and then
"software update: invalid option -- \r"
followed by the description on the usage of software update.
I then tried running the the two line seperatly by typing them directly into terminal and it returned
"/usr/sbin/softwareupdate: cannot execute binary file"
and
"/usr/bin/pmset: cannot execute binary file"
With my limited knowledge of macs I am now rather confused as why this is happening, any suggestions?
If it helps this is in OS X 10.5.8 and I ran echo $PATH and got
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Larkin
A section of script I have been working on was working fine yesterday and today has stopped working with out any changes being made. The two lines in question are nothing fancy:
Code:
pmset -a sleep 0 force
softwareupdate -i -a
When I run the script in terminal it returns
": command not founde 2:"
followed by a description of the usage of pmset and then
"software update: invalid option -- \r"
followed by the description on the usage of software update.
I then tried running the the two line seperatly by typing them directly into terminal and it returned
"/usr/sbin/softwareupdate: cannot execute binary file"
and
"/usr/bin/pmset: cannot execute binary file"
With my limited knowledge of macs I am now rather confused as why this is happening, any suggestions?
If it helps this is in OS X 10.5.8 and I ran echo $PATH and got
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Larkin