I have a script which uploads files successfully to another server via ftp. But after the files are uploaded, I want them to be deleted (removed), but it doesn't seem to work. I would appreciate if someone could help me out with this. How can I modify my script so that the uploaded files will be deleted after the ftp session?
Here's the script:
ftp -n $Server <<End-of-Session
user $Username $Password
Thanks a lot,