Topic "Deleting Local files after using put command"

Author Message
MentalBreakdown

Guest


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.
Advertisements
MentalBreakdown

Guest


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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
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.
_________________
Martin Prikryl
MentalBreakdown
[View user's profile]

Joined: 2009-08-02
Posts: 3
I sent you an e-mail with a log file and the output. I changed sensitive data to something else to still show exactly how this is working and happening
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License