| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 29/4/04 10:15, "Axel Luttgens" <email@hidden> wrote:
Just a guess.
Does your calling script really need to run as nobody?
OK. We need some background, something I was trying to avoid boring the list
with *before* I had a solution :-)
[...]
One way round this is ssh to localhost, using the account of a logged-in GUI
user, hence user "nobody" sending the command when user "nigel" is logged
in:
ssh nigel@127.0.0.1 "osascript -e 'do stuff'"
Only useful if there is some way to also script in the password stage.
For that very precise question, the only way I can think of is to use
expect, that comes bundled since 10.3.
Perhaps that will do it.
Of course, this would require the password to be stored somewhere in clear.
Or passed as one of the parameters of the Xgrid job (later versions of Xgrid
may use SSL to pass jobs around).I also envisage the GUI account used to be
limited using standard OSX security features such as "Limitations" in the
"Accounts" control panel, locked screen, etc.
Another way of doing all this, rather than using ssh/osascript, would be to
use Remote Apple Events. I was avoiding this because I find Photoshop to be
unscriptable over eppc://.
But I've had another idea -- a stay-open script
application which listens for Remote Apple Events and passes them on to the
local Photoshop. I'll try this later.
[...]
Hope that explains things better,
| References: | |
| >Re: Osascript and ssh (From: Nigel Smith <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.