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


Click here to return to the 'Allow non-admin users to run Software Update' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Allow non-admin users to run Software Update
Authored by: Tezzaaust on Sep 12, '07 06:09:45PM

I have added the command to /etc/sudoers
I have created a crontab with a pop up downloading and downloaded users warning. (10 mins set for testing only)

0,10,20,30,40,50 * * * * open /Applications/updating.rtf ; open /Applications/Utilities/terminal.app ; sudo softwareupdate -ia ; open /Applications/updated.rtf

Unfortunately this crontab command works from a terminal window but not from the crontab even though the crontab opens a terminal window and shows both warnings but seem to skip the softwareupdate -ia command
Anyone know why.



[ Reply to This | # ]
Allow non-admin users to run Software Update
Authored by: MrLint on Sep 17, '07 06:34:43PM

Tezzaaust:

I think your problem is that you are (I think) trying to inject the softwareupdate -ia into the terminal window via a separate command, which really wont work. I would suggest you make, and save yourself a .command file with the command in it and then call that form your cron job.



[ Reply to This | # ]