Thread-topic: Quick AppleScript to open an SSH session to a client
User-agent: Microsoft-Entourage/12.1.0.080305
On 5/1/08 11:10 AM, "Nick McSpadden" <email@hidden> wrote:
> Most helpful indeed!
-- snip --
> Now here's a bit of a question - is it possible to have a script that sends a
> Unix Command to activate SSH on a selected target machine, and then launch an
> SSH session to it in the Terminal as your script does? Having both of those
> together would really float my boat, but I can't figure out the combination of
> commands.
Take John's script and insert the following code after 'end repeat' and
before 'end tell' in the 'tell application' block:
set startSSH to "/sbin/service ssh start"
set unixCommand to make new send unix command task with properties¬
{showing output:true, user:"root", script:startSSH}
set doUnixCommand to execute unixCommand on theComputers
That should do the trick.
--
Peter M. Bukowinski
IT Sr. Support Engineer
Janelia Farm Research Campus
Howard Hughes Medical Institute
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/email@hidden
This email sent to email@hidden