I have the following cron
echo "*** Get the new ZIP file ***"
/usr/bin/wget -t inf -nH -N -c --progress=dot --reject=zip --mirror --timestamping --timeout=60 --waitretry=60 --no-passive-ftp --directory-prefix=/var/www/vhosts/mydir --ftp-user=xxx --ftp-password=xxx ftp://xxx.xxx.be/xxx.zip
echo "*** Cool now unzip the file please. ***"
unzip -o /var/www/vhosts/mydir/xxx.zip
everything works perfect from terminal However if i make a cron job out of it the zip file gets downloaded but i can't seem to unzip the file and i get the following error's
*** Start *** Cool now unzip the file please. ***
Archive: /var/www/vhosts/mydir/xxx.zip
checkdir error: cannot create 012
unable to process 012/.
checkdir error: cannot create 025
unable to process 025/.
checkdir error: cannot create 027
unable to process 027/.
checkdir error: cannot create 031
unable to process 031/.
checkdir error: cannot create 031
unable to process 031/xxx/xx.jpg.
checkdir error: cannot create 031
unable to process 031/xxx/xx.jpg.
checkdir error: cannot create 053
unable to process 053/xxx/xx.jpg.
checkdir error: cannot create 053
unable to process 053/xxx/xx.jpg.
Is there a way i can force to create directory or overwrite existing files?
