• 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: Check to see if a computer is running....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check to see if a computer is running....


  • Subject: Re: Check to see if a computer is running....
  • From: Tod Hallberg <email@hidden>
  • Date: Mon, 19 Sep 2005 08:02:19 -0500

Actually, it is on a local network. I know for sure that AFP is running on
all machines (unless the computer is partially crashed).

Thanx to Martha I. Espinosa for this code:

try
set NetConnect to (do shell script "ping -c 1 machine/ip address")
on error TheError
if TheError contains "unknown host" then
set NetConnect to "unknown host"
end if
end try
if (NetConnect contains "100% packet loss") or (NetConnect is "unknown
host") then --not on network
else
try
mount volume \
end try





> From: "John C. Welch" <email@hidden>
> Date: Sat, 17 Sep 2005 09:42:18 -0500
> To: AppleScript User's List <email@hidden>
> Subject: Re: Check to see if a computer is running....
>
> On 9/16/05 16:31, "Tod Hallberg" <email@hidden> wrote:
>
>> Is there a way to check to see if a remote computer is running before I try
>> to run a mount volume command?
>>
>> Either via direct applescript or through a do shell script?
>
> That's part of it. What you also want is to make sure AFP or SMB is running
> too.  Is this remote on the local network or across the Internet?
>
> --
> "You're amusing, in a "What the hell is wrong with you" sort of way"
> Baldur's Gate
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> om
>
> 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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Check to see if a computer is running....
      • From: "John C. Welch" <email@hidden>
References: 
 >Re: Check to see if a computer is running.... (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Next by Date: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Previous by thread: Re: Check to see if a computer is running....
  • Next by thread: Re: Check to see if a computer is running....
  • Index(es):
    • Date
    • Thread