Hi guys, i'm having a problem with a bash script to run on a crontab:
i can get the script to login on a ftp and download all the stuff i need to backup and publish it on my website but i can't get the script to connect and delete the stuff that has been backed up. To explain what i was trying to do here is the lines i added:
wget -nc ftp://user:pass@domain/folder/*.*
so until now it works fine: i run the script and all the files are backed up but i need to remove them from the souce so i added:
but the error is that from the bash script it get's stuck at the ftp prompt. Any suggestions?