I have a problem which is really stupid.
I have a cronscript (ftpdownload.sh) with the lines below in it:
DATUM=`date -d "-1 day" +"%Y-%m-%d"`;
HOST='ip adres server'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
It is a script who will download the logfiles to my local machine.
When i run this manually the script runs succesfully. When i put it in the crontab with the following line:
*/1 * * * * /scripts/ftpdownload.sh >> /tmp/my.log 2>&1
I found an article on the internet with the same problem:
WHAT I TRIED:
changed the name of the script (with and without extension)
made the script 777
put the script in cron.daily.
Does anyone have any idea what this could be?