Running a script when connected to the lan

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
hgupta
Newbie
Posts: 2
Joined: Fri Apr 25, 2003 10:36 pm

Running a script when connected to the lan

Post by hgupta » Fri Apr 25, 2003 10:43 pm

Is there a convenient way for macro scheduler to run a script when a network connection becomes available? I'm on a laptop with a wireless network connection, and I would like the laptop to run some of my scripts whenever it can connect to my network. I've got everything else working great, except detection a network connection.
Much Obliged,
Hemant
Hemant Gupta

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Apr 25, 2003 10:56 pm

Could set up a loop to periodically do a "ping" to a network resource.

Or IfFileExists>\\server\resource\folder\goodfile.txt on a network resource for a file you know will always be there.

If succcessful, continue, if not, wait and loop again.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

hgupta
Newbie
Posts: 2
Joined: Fri Apr 25, 2003 10:36 pm

Thanks

Post by hgupta » Sat Apr 26, 2003 7:06 pm

That was helpful. I got success just using the result of the HTTPRequest with an if statement. Works like a charm.
Hemant Gupta

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts