Re: Newbi with scripting synchronize or get i have a doubt
I have added topic on deleting files after synchronization to FAQ.
hie all, iput my context:
i have a windows server where i have set a task scheduled to start get every one hour, i retrieve log file from a remote server (unix).
i use synchronize option before but i encounter an issue because i can't delete file after transfer only 'get' can do that.
so someone can help me to automate this script without alert.
task scheduled:
"C:\Program Files\WinSCP\winscp.Exe" /console netreport@mrs-ix-00002.xxxxxxx.com /privatekey="D:\Sources\NetReport_New_PPK.ppk" /script="D:\script\Script_SFTP_SG1.txt"
Script_SFTP_SG1.txt
cd /prd/proxy/netreport/ProxySG1
get -delete *.log "D:\Applications\Netreport\Logs\Engine\FlatFile\Proxy SG1\"
exit