Howdy,
It's been a while, so some of my info may be off and/or stale here. You have a couple of options, though I'm not familiar with whatever you mean by 'using administrator privileges', in that you can either try to pass 'sudo visudo' and edit the sudoers file so that whatever commands you need, or all commands, don't require a password. You can also use 'echo $password| sudo -S command' in your script, but be aware that the password might show up in the process list. To avoid that you could hide the password in a text file and just read it to stdin using cat. There's a way to do this with applescript as well, but offhand I can't think of or find it.

I'm not sure about the using administrator privileges thing. When you sudo the account should have all the access you need, if memory serves. It's possible to create a seperate administrative account, but that would be overkill.

Good luck,
Fargo

Craig Hoyt wrote:
Happy Holidays Everyone...

I have a pair of UDP apps that are a master/slave set. The slaves will perform a function that the master app sends.

Two of the commands the slave must handle is the System Updates and the cron maintenance scripts. I do this using the UNIX shell commands. In both cases I get a permissions failure. I know I need to use sudo using these commands but I also need to add the 'using administrator privileges' and a password embedded.

Can one of the UNIX gurus out there help me with the proper syntax for these calls?

System update is : softwareupdate -i -a
Maintenance is : periodic daily

thanks
Craig
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to