New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - run script when 1) internet is connected 2) login/logout/wake 4) some app is launched

Post Reply New Thread Subscribe

Thread Tools

Member Since: Oct 21, 2009
Posts: 4
bacchusf is on a distinguished road

bacchusf is offline

To track my computer in case my laptop is stolen, I am currently running a bash script to send hostname, ip, and cam capture image to my email every 5 minutes using cron.

I believe this helps when I lose my laptop, but I want to send an email not only in timed manner but also in some critical incidents.

i am thinking three cases:

1) internet is connected
2) login/logout/wakeup
3) some app (safari, etc) is launched.

I searched web, and found this:
2c) wakeup case can be done by SleepWatcher

However, I couldn't find other cases, and i prefer non-daemon approach (sleepwatcher will definitely use some memory.). I hope that i can do it with scripting languages, such as applescript or bash script. Please let me know if you know any of three cases.

Thank you.
QUOTE Thanks

Post Reply New Thread Subscribe

« "Hot-keys" not working on aluminium keyboard. | Streaming WMV »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Run a remote script without mounting its drive first opus_az OS X - Operating System 0 11-30-2007 10:43 AM
A good app for Home network internet traffic hal515 OS X - Apps and Games 2 11-11-2007 09:29 AM
Is there a way I could write a script to be run with iCal to text me reminders? skye OS X - Development and Darwin 5 10-08-2007 03:16 PM
Run a script at login? thermidor OS X - Operating System 2 08-21-2007 07:31 PM
Run app from iso image e46ci OS X - Apps and Games 0 05-31-2007 08:31 PM

All times are GMT -4. The time now is 07:55 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?