FTPS against MVS - can't get attributes of file
We use WINSCP extensively - mainly for SFTP but are having difficulty setting up for FTPS.
So far unable to identify issue.
Here is the command line:
winscp.exe /console /script=test.txt /log=log.txt
cmd /C "$winscpexehome\winscp.com" /script="$winscpexehome\script_FTPS_GET.txt" /parameter $FTPUser $FTPPassword $FTPServer $RemoteFileName $LocalFilePath
Here is the script_FTPS_GET.txt script:
-- start --
option batch on
option confirm off
open ftps://%1%:%2%@%3% -explicittls -explicitssl -passive -certificate="14:db:d6:34:65:63:81:5a:6d:ba:26:97:ea:d0:48:79:cd:e9:73:a8"
lcd c:\program files (x86)\winscp\Input
cd "'%4%'"
get "'%4%'" %5%
exit
-- end --
After running the script I get following:
Can't get attributes of file ''aaaa.bbbb.cccc.STMTARVL.TXT''.
WinSCP Version 5.7.6 (Build 5874) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard) Session log file is attached.
So far unable to identify issue.
Here is the command line:
winscp.exe /console /script=test.txt /log=log.txt
cmd /C "$winscpexehome\winscp.com" /script="$winscpexehome\script_FTPS_GET.txt" /parameter $FTPUser $FTPPassword $FTPServer $RemoteFileName $LocalFilePath
Here is the script_FTPS_GET.txt script:
-- start --
option batch on
option confirm off
open ftps://%1%:%2%@%3% -explicittls -explicitssl -passive -certificate="14:db:d6:34:65:63:81:5a:6d:ba:26:97:ea:d0:48:79:cd:e9:73:a8"
lcd c:\program files (x86)\winscp\Input
cd "'%4%'"
get "'%4%'" %5%
exit
-- end --
After running the script I get following:
Can't get attributes of file ''aaaa.bbbb.cccc.STMTARVL.TXT''.
WinSCP Version 5.7.6 (Build 5874) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard) Session log file is attached.