Topic "rm *.csv not removing anything"

Author Message
KeeghanM

Guest


Hi,

I have a script which is downloading all the files from a folder onto my local machine. Then I want to remove everything from the remote folder. The script I have is:
Code:
option batch on
option confirm off
open SAMBA
cd /home/ftpadriley/VehicleAudit/
lcd C:\temp\VehicleAudit\Download\
mget *.csv
rm *.csv

Which works up till the rm *.csv line. I download all the files, but they stay up there.

I also tried a get -delete and that didn't work either.
I have permission to delete, my connection is set up with root.

thanks for any help,
Keeghan
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. 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 can mark the attachment as private.
KeeghanM

Guest


prikryl wrote:
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. 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 can mark the attachment as private.


Hi,

Uploaded the log file, when its doing the rm *.csv it is coming back "Status Code: 0" which indicates that it is working, however I can confirm 100% that the files are still in the folder that its apparently deleting from.

thanks for any help.
Keeghan
log_file.txt (123.49 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You can see in the log file that deleting of about 60 .csv files was requested by WinSCP and confirmed by the server (with no error). If the files were not deleted by the server actually, it's not a problem of WinSCP.
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