Sunday, June 7, 2015

[CONSOLE] Looping Script

7 Juni 2015

Membuat program looping

> Windows bat

> Linux sh
$ cat every-5-seconds.sh
#!/bin/bash
while true
do
   /home/ramesh/backup.sh
   sleep 5
done
Referensi:
- http://www.thegeekstuff.com/2011/07/cron-every-5-minutes/
- http://stackoverflow.com/questions/166044/sleeping-in-a-batch-file
- http://ss64.com/nt/for.html

No comments:

Post a Comment