*/5 * * * * root ./temp.sh
The above must be run as root,how to make it work for all users?
add it to your global crontab in /etc/crontab
use sudo to run it and configure temp.sh in sudoers with the NOPASSWD option.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago