• 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 23:21:39 -0800

On Dec 1, 2003, at 2:19 PM, Michael Terry wrote:

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



But doesn't, as it turns out, mean anything. I tried localhost, but it seems you can tell "127.0.01" or "10.0.0.1" or "Britney" or "" or nothing at all and the above will work, but only in the sense that it's calling a command on one's own machine.

Noticed this after getting a message from a suspicious Christopher Nebel.


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: Chris Garaffa <email@hidden>
References: 
 >Telling remote computer to "do shell script" (From: Chris Garaffa <email@hidden>)
 >Re: Telling remote computer to "do shell script" (From: Michael Terry <email@hidden>)

  • Prev by Date: Re: OS X and RegEx Commands
  • Next by Date: Re: Satimage OSAX request
  • Previous by thread: Re: Telling remote computer to "do shell script"
  • Next by thread: Re: Telling remote computer to "do shell script"
  • Index(es):
    • Date
    • Thread