When my crontab job runs a script, text is appended to the script file after the job is complete. I then delete the appended text but it is added to the script file the next time the cron job runs. This is the appended text:
Code:
From naf Wed Mar 25 18:47:01 2015
Date: Wed, 25 Mar 2015 18:47:01 -0400
To: scripts, backup
User-Agent: Heirllom mailx 12.5 7/5/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
the "To" recipients are the names of the only 2 folders I have in my home directory.
I'm using postfix
This is the crontab:
Code:
47 18 * * * * /home/naf/scripts/backup_databases.sh
So the above text is appended to the file backup_databases.sh
Any idea what is going on?
Thanks,
Nick