thejinx0r
April 12th, 2008, 05:58 PM
Hey Guys
I need some help for Wake on Lan.
I want to save a little on my "electric bill".
What I want to do is to have my server on only when my laptop is on.
I've managed to configure my laptop to turn on my computer when it connects to the same router.
But, I'm trying to write a script so that if it cannot ping my laptop for more than a minute, it would shut down.
I haven't done any advance programming / bash scripting, so I'm not sure how to write it. I was thinking that if there was a 100% packet loss after 50 ping attempts, it would shut down.
Anyways,
Thanks if you guys can help me.
I need some help for Wake on Lan.
I want to save a little on my "electric bill".
What I want to do is to have my server on only when my laptop is on.
I've managed to configure my laptop to turn on my computer when it connects to the same router.
But, I'm trying to write a script so that if it cannot ping my laptop for more than a minute, it would shut down.
I haven't done any advance programming / bash scripting, so I'm not sure how to write it. I was thinking that if there was a 100% packet loss after 50 ping attempts, it would shut down.
Anyways,
Thanks if you guys can help me.