Ignoring responses from "do shell script"
Ignoring responses from "do shell script"
- Subject: Ignoring responses from "do shell script"
- From: Martin Orpen <email@hidden>
- Date: Tue, 09 Mar 2004 18:27:05 +0000
I've got a script that sends a single ping to a number of IP addresses and
then reports whether the machine is up or not.
Machines that are up respond very quickly, but those that are down cause
delays of around 10 seconds per IP.
I've broken a few rules and managed to get the delay down to 5 seconds by:
with timeout of 5 seconds
tell application "System Events"
set x to do shell script "ping -c 1 etc etc"
end tell
end timeout
But am not happy about using System Events to look after the process.
Does anybody know of another way to generate an error quicker with shell
scripts so that I can get this time under 5 seconds?
(Although I can set the timeout to lower than 5 seconds I get incorrect
information coming back for anything less).
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.