• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Telling remote computer to "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Telling remote computer to "do shell script"
      • From: Michael Terry <email@hidden>
References: 
 >Telling remote computer to "do shell script" (From: Chris Garaffa <email@hidden>)

  • Prev by Date: Re: Ultra Newbie question
  • Next by Date: Re: Ultra Newbie question
  • Previous by thread: Telling remote computer to "do shell script"
  • Next by thread: Re: Telling remote computer to "do shell script"
  • Index(es):
    • Date
    • Thread