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: "John C. Welch" <email@hidden>
- Date: Fri, 06 Feb 2004 19:24:23 -0600
On 2/6/04 6:35 PM, "Sander Tekelenburg" <email@hidden> wrote:
>
Handling errors returned by do shell script can be a drag. For the script
>
below, I didn't bother looking into what errors might be returned by
>
softwareupdate. But I thought you wanted to do this to remote machines that
>
have no users logged in at the 'console'. AFAIK ssh is your only option then.
>
In any case, if security is an issue then ssh seems like a better choice than
>
'cleartext' remote AppleEvents.
>
>
> That's
>
> not easy with "do shell script", but it's easier than trying to concatenate
>
> a dozen shell commands from the get go. Being able to do this via remote
>
> events is going to be a lot easier than trying to deal with shell script
>
> oddities. Keeping it to remote apple events allows me to use the keychain
>
> for password storage.
>
>
My approach assumes having created a keypair and uploaded the public portion
>
of it to the remote machine. The unix equivalent of Keychain is called
>
ssh-agent (which may well preceed Apple's Keychain - I don't know). With the
>
GUI front-end for ssh-agent (available at
>
<http://www.phil.uu.nl/~xges/ssh/>), which even helps you create your
>
keypair, it doesn't get any easier or "Mac-like".
>
>
> Third party osax aren't needed, and in any event, I won't use them because I
>
> need to be able to rely on consistent performance without dealing with
>
> licensing of osaxen, terminology class, etc.
>
>
The only third-party OSAX I use is system.osax, which is free. In any case,
>
it isn't requiered.
Yep...it looks like the only way to do it is remote ssh concatenation.
That of course will be AFTER I file yet another bug on AppleScript.
I may just start using Omniweb 5 for bug filing, since I've been doing it at
such a furious clip with panther.
It's just really REALLY frustrating to keep hitting roadblock after
roadblock because $)(%*&$)(*%$@W)( Steven P. Jobs won't bloody require all
Apple products to be fully scriptable. I think the next time he says "We eat
our own dogfood", I'm pulling out a bullhorn and yelling "WHAT ABOUT
APPLESCRIPT? THE PLATE SEEMS MIGHT EMPTY"
I still can't create printers with applescript...unless I use do shell
script
I still can't set up network settings...and shell script is NOT much better,
because the SCF framework is essentially cocoa only...i'm currently doping
out scutil, which has NO DOCUMENTATION.
And can someone tell me why the ONLY WAY to easily, remotely change IP
addresses on OS X boxes requires ARD/TB2/netO?
This is why I laugh hysterically when I hear about "easy remote management"
on the platform...
john
--
Braccae illae virides cum subucula rosea et tunica Caledonia-quam elenganter
concinnatur!
(Those green pants go so well with that pink shirt and the plaid jacket!)
_______________________________________________
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.