Using the Linux command 'Watch' to test Cron jobs and more
OK, so you have added a cron job that you want to perform a routine task every day at 6am. How do you test it? You probably don’t want to spend all night waiting for it to execute, and there’s every chance that when it does execute, you won’t be able to find out whether it is executing properly - the task might take 30 minutes to run, for example. So every time you debug it and want to test it again, you have to wait until 6am the following day. ...