do shell script timeout too long
do shell script timeout too long
- Subject: do shell script timeout too long
- From: Alan Fairlie <email@hidden>
- Date: Thu, 21 Aug 2008 22:06:55 +1000
Hi, I'm having trouble with a script with the following command.
do shell script "ssh user@machine ps ax"
The problem is when the remote machine is turned off or logged out. It times out after the default 2 minutes which I've tried to shorten using 'with timeout of 10' .
Is there a different command I can use with the 'ssh' to check if the remote machine is on or a way to shorten the timeout?
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