![]() ![]() ![]() If you created the file in windows, make sure Windows didn't add a hidden. Copy the root file to /etc/cron/crontabs (resulting in /etc/cron/crontabs/root). */1 would check every minute, */2 every 2 minutes, etc. That'd run the script every 5 minutes to check and restart cam if needed. You may find it easier to just create a text file named root (not root.txt, just root) containing a line like: Personally I use the "crontab -e" command to configure my cron jobs, but that requires a basic understanding of the Vi editor. etc/init.d/softcam.CCcam221 start #If it wasn't running, start it If ps | grep -v grep | grep CCcam221 > /dev/null #Check target is runningĮxit #If target is running, exit the script If your cam binary was named CCcam221 then the script would look like Would you please explain step by step and thanks in advance! Many thanks for answer, but where can find the cron? Where should I write the CCcam version I use CCcam221 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |