Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

tolaes@maxlinear.com

Re: Delete source file after FTP File transfer not working

Thanks for responding Martin! I gave up and using PowerShell to do it.
martin

Re: Delete source file after FTP File transfer not working

There's no error in the log snippet you have posted. Please attach complete log file.
tolaes@maxlinear.com

Delete source file after FTP File transfer not working

I have the following script that runs. The file is uploaded to the destination but the file is not deleted in the local directory folder after it is successfully transferred. I also tried put and mput. Any ideas?
open sftp://removed@b2b.maxlinear.com/ -hostkey="removed"
bin
 
option batch continue
option confirm off
option reconnecttime 10
option failonnomatch on
 
lcd D:\EDI\B2BExporter\Picklists\CARS-MY-XNET
cd /MaxLinear/crsb2b/outbound
 
put -delete D:\EDI\B2BExporter\Picklists\CARS-MY-XNET\*.csv /MaxLinear/crsb2b/outbound/
 
exit

I see the following error:
2021-10-21 14:36:42.953 Cached directory change via "/MaxLinear/crsb2b/outbound" to "/MaxLinear/crsb2b/outbound".
. 2021-10-21 14:36:42.953 Getting current directory name.
< 2021-10-21 14:36:42.953 Script: /MaxLinear/crsb2b/outbound
> 2021-10-21 14:36:42.953 Script: put -delete D:\EDI\B2BExporter\Picklists\CARS-MY-XNET\*.csv /MaxLinear/crsb2b/outbound/
< 2021-10-21 14:36:42.953 Script: Using configured transfer settings different from factory defaults.