10-22-2009, 12:44 AM #1
run script when 1) internet is connected 2) login/logout/wake 4) some app is launched
- Member Since
- Oct 22, 2009
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
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Brooklynguy in forum OS X - Operating SystemReplies: 2Last Post: 01-03-2014, 12:11 PM
By Chris.M in forum OS X - Operating SystemReplies: 2Last Post: 09-04-2013, 12:06 PM
By jgr in forum OS X - Development and DarwinReplies: 1Last Post: 03-16-2012, 06:13 PM
By makisf4 in forum OS X - Operating SystemReplies: 0Last Post: 09-21-2009, 07:20 PM
By thermidor in forum OS X - Operating SystemReplies: 2Last Post: 08-21-2007, 08:31 PM