Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Some perl scripts to help track stolen computers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Some perl scripts to help track stolen computers
Authored by: kbradnam on Aug 28, '06 09:27:02AM

I guess it depends if the stolen computer is powered down or just sleeping (notebook lid closed). It's probably easier to set up a script that only runs each time the system is powered on (though you might want to add a delay to give time for a machine to find/join a network).

I'm not sure how to trigger something when waking from sleep (though in the case of notebooks this will possibly be the more likely scenario following any theft). Presumably there are some UNIX processes that occur during the wake up process and maybe you could piggy back the security scripts to fire at the same time.

If anyone has any better information on doing this then I will gladly include that in my scripts.

Regards,

Keith



[ Reply to This | # ]
Some perl scripts to help track stolen computers
Authored by: SOX on Aug 28, '06 10:01:16AM

Cron has an onwake mode. So it launches any scrip set to launch onwake.




[ Reply to This | # ]
Some perl scripts to help track stolen computers
Authored by: nostriluu on Aug 30, '06 09:28:48AM
I couldn't find anything about an on wake mode in crontab (5). Just an 'on system startup' tag.

This looks like the ticket: http://www.radiotope.com/writing/?p=71 (random article on interacting with configd events).

I can't work on this right now but perhaps someone who is almost there can finish this up so it sends an isight pic / network coordinates on startup via a script.




[ Reply to This | # ]
Some perl scripts to help track stolen computers
Authored by: nostriluu on Aug 28, '06 11:13:20AM

I think making the event when the network comes up with be good enough, and more reliable than a delay after startup, aside from occasional networking flapping issues. On Debian this was pretty easy to work with, but I'm not in Kansas anymore. I hope you can work something up.



[ Reply to This | # ]
Some perl scripts to help track stolen computers
Authored by: Krazy on Aug 28, '06 04:42:55PM
&tkbradnam said:

I'm not sure how to trigger something when waking from sleep ...  If anyone has any better information on doing this then I will gladly include that in my scripts.

Check out SleepWatcher, as mentioned here: Switch to login window upon sleep

[ Reply to This | # ]