i need to start a utility written in nodejs lets say in every X minute. i chose crontab,
my crontab looks like
* * * * * /bin/bash /home/michy/run-lola-run.sh
and my script
#! /bin/bash
cd /home/michy
touch test_before #testing to see the script runs
/usr/bin/node /home/michy/update.js
touch test_after #testing to see the script hanged or crashed
Here the 'node update.js' runs only with 'crontab -e' and does not runs with 'sudo crontab -e'
but my script run-lola-run.sh runs both case, and it creates the files(test_before,test_after) in both cases
there is no error reported in /var/log/syslog
Thank you