[SOLVED] Cron is not working for me
-
I have tried 2 ways to apply a cron job using a custom script
1. Using the Cron package to use the webUI to load the job
2. Using the crontab -e commandNeither of them work, here is my script:
#!/usr/local/bin/bash
sleep 15
/sbin/ifconfig | sendEmail -f ****** -xu ****** -xp ****** -t ****** -u Notification -s smtp.gmail.com:587 -o tls=yesI am able to run the script without permission errors, but I cannot get cron to do it automatically.
Edit: I had posted the wrong version of the script
Solvedit:
I had incorrectly stated the program in my script! I have changed it to:
#!/usr/local/bin/bash
sleep 15
/sbin/ifconfig | **/usr/local/bin/**sendEmail -f ****** -xu ****** -xp ****** -t ****** -u Notification -s smtp.gmail.com:587 -o tls=yes
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy