• 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
Send commands to remote machine with 'do shell script'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Send commands to remote machine with 'do shell script'


  • Subject: Send commands to remote machine with 'do shell script'
  • From: Alan Fairlie <email@hidden>
  • Date: Tue, 29 Jul 2008 19:51:06 +1000

I have setup ssh to login in without asking for a password with dsa keys.
Now I want to send commands to the remote machine.
I have tried the following.

do shell script "ssh user@address ; ps"

But the 'ps' returns processes for the local machine.

I also want to be able to run apps remotely via applescript.

I can get it working with Tell Application "Terminal" using multiple 'do script's in window 1.

But l'd prefer to keep it enclosed in an applescript.

Any help would be greatly appreciated.

Thanks, Alan.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Send commands to remote machine with 'do shell script'
      • From: SVV Satyanarayana <email@hidden>
    • Re: Send commands to remote machine with 'do shell script'
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: weird behaviour (solved)
  • Next by Date: Re: slash path to alias
  • Previous by thread: Re: weird behaviour (solved)
  • Next by thread: Re: Send commands to remote machine with 'do shell script'
  • Index(es):
    • Date
    • Thread