Re: Telling remote computer to "do shell script"
Re: Telling remote computer to "do shell script"
- Subject: Re: Telling remote computer to "do shell script"
- From: Michael Terry <email@hidden>
- Date: Mon, 1 Dec 2003 14:19:56 -0800
On Dec 1, 2003, at 11:18 AM, Chris Garaffa wrote:
Hey all,
I have a script for some users here that runs chflags on our server. I
don't trust these people in the Terminal and with SSH, so they need a
GUI (this I'm handling with AppleScript Studio, but my question is
pure AppleScript)
What I'd like to do is represented by this pseudo-code:
tell application "someapp" of machine "eppc://user:email@hidden"
do shell script "sudo chflags uchg /Volumes/Data/CA\ Policies"
password "adminpassword" with administrator privileges
end tell
For "someapp" I've tried "Finder" and "System Events" with no luck.
What application do I need to tell to "do shell script"?
Hey, telling AppleScript what to do is useful for something! I've never
scripted networked computers, but this works for me:
tell machine "eppc://localhost" to tell AppleScript
do shell script "echo hello"
end tell
Cheers,
Mike
_______________________________________________
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.