Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
run script when 1) internet is connected 2) login/logout/wake 4) some app is launched
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bacchusf" data-source="post: 929017" data-attributes="member: 128218"><p>Hello,</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>i am thinking three cases:</p><p></p><p>1) internet is connected</p><p>2) login/logout/wakeup</p><p>3) some app (safari, etc) is launched.</p><p></p><p>I searched web, and found this:</p><p>2c) wakeup case can be done by SleepWatcher</p><p></p><p>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.</p><p></p><p>Thank you.</p></blockquote><p></p>
[QUOTE="bacchusf, post: 929017, member: 128218"] Hello, 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]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
run script when 1) internet is connected 2) login/logout/wake 4) some app is launched
Top