How do I run a cron job manually?

KellyPoima

New member
How do I run a cron job manually?
Answer
Explicitly set the PATH within the script, while testing, to /usr/bin:/bin. You can do this in bash with export PATH
=”/usr/bin:/bin
” Explicitly set the proper PATH you want at the top of the crontab.

…

What it does :
  1. lists crontab jobs.
  2. remove comment lines.
  3. remove the crontab configuration.
  4. then launch them one by one.
 

Tìm kiếm

Back
Top