Hi guys, I have to replace the current transfers from AS400 to another server, I don't know if it is an AS400 or another type, doesn't matter.
Currently, the program who makes the transfer has this input file with commands:
user_name password
NAMEFMT 1
SENDPASV 1
cd Folder/Root/folder1/folder2
put /QSYS.lib/my_library.lib/My_file.file/Member1.mbr File_sent.txt
close
quit
Can you explain me how I have to do to convert all these commands to run under QSH?
I know that I need an user profile with public key to be able to connect to the remote system with key authentication and I have to run the commands for transfer under QSH on AS400 with a script file stored into the IFS under the user directory
but the question now.. I don't know if I can put all these commands in the script file in IFS and after run in QSH the commands sftp -b /sftp_user/script_file name_serverUserID@server?
It support all FTP commands? like NAMEFMT 1, SENDPASV 1, change directory because I have to send the files in the same location, but under SFTP.
Thanks in advance
Currently, the program who makes the transfer has this input file with commands:
user_name password
NAMEFMT 1
SENDPASV 1
cd Folder/Root/folder1/folder2
put /QSYS.lib/my_library.lib/My_file.file/Member1.mbr File_sent.txt
close
quit
Can you explain me how I have to do to convert all these commands to run under QSH?
I know that I need an user profile with public key to be able to connect to the remote system with key authentication and I have to run the commands for transfer under QSH on AS400 with a script file stored into the IFS under the user directory
but the question now.. I don't know if I can put all these commands in the script file in IFS and after run in QSH the commands sftp -b /sftp_user/script_file name_serverUserID@server?
It support all FTP commands? like NAMEFMT 1, SENDPASV 1, change directory because I have to send the files in the same location, but under SFTP.
Thanks in advance
Comment