Run program in daemon mode
I have written a small script (controls the internet with ping command).
I want this script to run in every five minutes. My question is: How can I run this script in daemon mode? Or simply put infinite "while" cycle in the code, which is performing the ping command every five minutes? Thank you! |
You can use '&' in the end of your script command...
It will run in background.. for example: ./yourscript.sh & regards ag2uki |
ok thanks!
But for example, if I want to ping in every five minutes, in that case do I put the code "ping -c 2 62.108.119.145" or "while true; do ping -c 2 62.108.119.145 done" Thanks! |
|
All times are GMT -5. The time now is 02:17 PM. |