Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in crontab (Ubuntu 20.04) #330

Open
vvmspace opened this issue May 12, 2020 · 1 comment
Open

Not working in crontab (Ubuntu 20.04) #330

vvmspace opened this issue May 12, 2020 · 1 comment

Comments

@vvmspace
Copy link

I have bash and node.js scripts:

runner.sh:

some=parameter npm run myscript

crontab

* * * * * cd /path/to/project && ./runner.sh

When I'm running the same from shell (./runner.sh) - everything works well. But I want to recieve notifications from cron.

Can you help me?
May be something wrong with paths?

I've tried to find it in project, but I couldn't. :-(

@WangHansen
Copy link

I just use node for the cronjobs and it works, I am not sure if it's problem of the shell, but here is my crontab config:
*/10 * * * * /Users/username/.nvm/versions/node/v12.18.4/bin/node /Users/username/Projects/test/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants