If I have 3 machine: computerA, computerB and computerC. Is there a way, by script, to know if a specific machine is awake ? If yes … how do I do that ?
Thanks in advance.
Robert
Model: iMac Intel (10.6.2) + iMac G5 (10.4.11)
AppleScript: 2.3 + 2.1.1
Browser: Safari 531.9
Operating System: Mac OS X (10.6)
I tried it but do not know what to do with the result in order to use it as a variable in the script. How can I interpret the result of the shell script to say if the selected address is active ?
If the connection is active I got this result:
"PING 10.0.1.3 (10.0.1.3): 56 data bytes
64 bytes from 10.0.1.3: icmp_seq=0 ttl=64 time=0.044 ms
64 bytes from 10.0.1.3: icmp_seq=1 ttl=64 time=0.063 ms
This seems to mean that the connection is active. When not the script returns an error message. How can I use these result to define: «active» or «not active» ?