• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: applescript "ping"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript "ping"


  • Subject: Re: applescript "ping"
  • From: "Otavio C. Cordeiro" <email@hidden>
  • Date: Fri, 3 Nov 2006 16:16:01 -0200

On 11/3/06, Bob Cuilla <email@hidden> wrote:
I have a Mac network with several machines that are all being backed
up, from a server, by Retrospect.  The automatic backup runs
Retrospect scripts for each machine.  Most of the time some of these
machines are out of the office (laptops) and of course, Retrospect
cant find them.  In this case Retrospect issues a warning.

I would like to check for the presence of these machines, maybe a
ping.  The result would allow me to script Retrospect accordingly.
In other words, is a particular machine is not on the network, I
would not try to back it up.

Does anyone have any ideas on this issue?

set hostName to "magrathea"

set retValue to (do shell script ("ping -c1 " & hostName & " >
/dev/null; echo $?"))

if retValue is equal to "0" then
	display dialog ":-))"
else
	display dialog ":-(("
end if


Thanks

Bob Cuilla
BLC Data Solutions
Orlando, Fl


_______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden

_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >applescript "ping" (From: Bob Cuilla <email@hidden>)

  • Prev by Date: Re: applescript "ping"
  • Next by Date: Re: Re: applescript "ping"
  • Previous by thread: Re: Re: applescript "ping"
  • Next by thread: Re: applescript "ping"
  • Index(es):
    • Date
    • Thread