Re: Shell script date & time coercions...
Re: Shell script date & time coercions...
- Subject: Re: Shell script date & time coercions...
- From: garbanzito <email@hidden>
- Date: Tue, 2 Apr 2002 14:01:56 -0700
at 2002 04 02, 11:32 -0600, they whom i call Matthew Stuckwisch wrote:
The second time doing it with the Terminal command "sudo cp -R
~/guifa/ Volumes/FW40/Matt/guifa/" (and then typing in my password)
took MUCH less time
hopefully you used CpMac, or perhaps those files didn't have
any resource forks or metadata ...
Actually, this reminds me of something...are AppleScripts granted
root priveleges, or is there a way for sudo commands to also offer
the password?
if you want the AppleScript itself to run with root
privileges, other than logging in as root first, the only
solution i know of is:
sudo osascript my_script_file
however such scripts can't do any user interaction (e.g.
dialogs).
i've also tried dropping AppleScripts on Psuedo (a nice
application authorizing tool), but it fails with an error in
the console.
of course, to simply authorize a shell command from within
AppleScript:
do shell script "whatever" with administrator privileges [password
"whatever"]
--
steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.