0
I am writing a cron job that sends an email from a file using sendmail. Running the script manually works fine and uses the contents of the file.
My script is just this
#!/bin/bash
sendmail me@email.com < /home/myname/project/annoy.msg
and my crontab is this:
0-59 * * * * /bin/bash /home/myname/project/script.sh'
As it is, it will send the email every minute, but it is always blank. I have fiddled with it in many ways but it has not worked, and I have not found anything about this on the internet. Thank you for looking at this.