Re: Do shell script on a remote machine
Re: Do shell script on a remote machine
- Subject: Re: Do shell script on a remote machine
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 4 Feb 2004 16:57:25 -0500
At 3:13 PM -0600 2/4/04, John C. Welch wrote:
So, any tips on the syntax for "do shell script" on a machine you're hitting
via EPPC?
As far as I know, you'll need to send the command(s) to a running app
on the remote machine. Try sending it to System Events or Finder.
Something like this might work.
using terms from application "Finder"
tell application "Finder" of machine "eppc://user:email@hidden"
do shell script "date"
end tell
end using terms from
This general syntax works for me when talking to OS 9 from OS X.
Obviously I didn't send a shell command to OS 9 and, unfortunately, I
don't have access to a remote OS X box.
-- Rob
_______________________________________________
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.