Posts Tagged With: while

Send Text Once Every 15 Mins

Tagged with: , , , , ,

Command to send a text to any phone once every 15 mins.


while [ 1 ]; do sms NUMBER_GOES_HERE "$(date '+%I:%M %p') Hey Anju. Still awake?"; sleep 15m; done

Script calls the command ‘sms’ – you can define that command however you want. In my case, its a variation of this script.

No Comments »

Monitor the Result of a Command

Tagged with: , , , , ,

Monitor the result of some command by looping it an infinite while loop. To quit, press Ctrl+C. Thanks to Sreenath for this tip.


while [ 1 ]; do ls -l; sleep 2; done
1 Comment »