I'm trying to automate a Node.js file to run on schedule. But I can't get it to work.
I'm using root user.
This is the path to get to the file location from login:
nodejs_projects/amazon_search_v2
Here is pwd output from the login location:
root@project:~# pwd
/root
And this is the script i'm adding in crontab :
0 4,12,20 * * * node nodejs_projects/amazon_search_v2/searchItemsApi.js >/dev/null 2>&1
What am i'm missing here?