nitrousio - How can one check cron.log on Nitrous.io? -
we attempting implement cron job, on nitrous.io. however, cron not working.
entry present in crontab. unable check cron.log , find cron.log
what way check cron.log, using nitrous.io?
and
is there service start , stop cron on nitrous?
cron default logs syslog, not accessible nitrous.io users. want log command output custom file instead.
here quick example of how log ping request on nitrous.io box:
navigate workspace folder , create new log file called cron.log
:
$ cd ~/workspace $ touch cron.log
edit crontab run ping command every minute:
$ crontab -e
this open vim. add following line 1 , save file:
* * * * * /bin/ping -c 1 192.168.0.1 > /home/action/workspace/cron.log
check contents after minute see if log has been populated.
$ cat ~/workspace/cron.log
Comments
Post a Comment