Simulate a cron job with watch
If you want to test a script that will run as a cron job, or you would like to run a command line script repeatedly to test it, watch is a great tool.
watch -n [number of seconds between runs] [command to execute]
For example:
watch -n 60 php super-script.php
Print article | This entry was posted by elvis on 10/20/17 at 09:53:00 am . Follow any responses to this post through RSS 2.0. |