Hello,
I have a problem which is really stupid.
I have a cronscript (ftpdownload.sh) with the lines below in it:
#!/bin/bash
DATUM=`date -d "-1 day" +"%Y-%m-%d"`;
HOST='ip adres server'
USER='user'
PASSWD='pass'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd logs/wowza
get wowzamediaserverpro_access.log.$DATUM
get wowzamediaserverpro_stats.log.$DATUM
get wowza_stats_access.log.$DATUM
quit
END_SCRIPT
exit 0
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:
http://www.linuxquestions.org/questi...b.-why-502661/
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?
thanks..