• 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: Osascript and ssh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Osascript and ssh


  • Subject: Re: Osascript and ssh
  • From: Nigel Smith <email@hidden>
  • Date: Wed, 28 Apr 2004 14:40:32 +0100

On 28/4/04 12:29, "Axel Luttgens" <email@hidden> wrote:

> ssh expects a command, if any, as its last argument.
> So, you have to explicitely make your
>
> osascript -e 'return 2+2'
>
> as a single argument for ssh.

Not strictly true, since:

ssh user@remoteIP ls -l /Users

...works as expected. But

> In the precise case of your example, enclosing it with double quotes suffices:
>
> ssh username@127.0.0.1 "osascript -e 'return 2+2'"

...does work, so I'm a happy bunny -- almost.

Can I also somehow pass in the required password so ssh doesn't need to ask
for it, when the command originates from the user "nobody" (ie. I can't use
my usual method of a pregenerated RSA key as in
<http://www.macosxhints.com/article.php?story=20011207004643312&query=ssh+pa
ssword+key>).

And before anyone asks -- I'm trying to see if there is a way to script
Photoshop via Apple's new Xgrid <http://www.apple.com/acg/xgrid/>, and
Photoshop seems almost untouchable using Remote Apple Events.

TIA,

Nigel
_______________________________________________
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: Osascript and ssh
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Osascript and ssh (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Osascript and ssh
  • Next by Date: script needed to force shutdown w/o any prompts/interference
  • Previous by thread: Re: Osascript and ssh
  • Next by thread: Re: Osascript and ssh
  • Index(es):
    • Date
    • Thread