Deleting Local files after using put command

Advertisement

MentalBreakdown
Guest

Deleting Local files after using put command

I am currently using 4.2.2 and am trying to delete after using the put command, but nothing deletes. I also have the option in to overwrite files on the remote machine. I am unsure about why this does not work. For my personal sake, I am taking real paths and filenames out and replacing them with fakes ones to show the syntax of how I am doing this.

option confirm off
put -delete filename.ext /home/directory/

I was assuming that these 2 lines would take a file from the local current directory, copy it over to the remote directory (overwrite if it still exists) and then delete it after we are completed.

These are not deleting.

Reply with quote

Advertisement

MentalBreakdown
Guest

Re: Deleting Local files after using put command

MentalBreakdown wrote:

I am currently using 4.2.2 and am trying to delete after using the put command, but nothing deletes. I also have the option in to overwrite files on the remote machine. I am unsure about why this does not work. For my personal sake, I am taking real paths and filenames out and replacing them with fakes ones to show the syntax of how I am doing this.

option confirm off
put -delete filename.ext /home/directory/

I was assuming that these 2 lines would take a file from the local current directory, copy it over to the remote directory (overwrite if it still exists) and then delete it after we are completed.

These are not deleting.

I forgot to mention that the files transfer just fine. They just do not delete.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Deleting Local files after using put command

Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

Reply with quote

Advertisement

You can post new topics in this forum