Hi, Mike,
have not used ftp for a long time, from what I remember - you will use "lcd" on local host:
cd /myIFSFolder
lcd /myIFSFolder
mput Test*
Sometimes you need to also issue "prompt" - to toggle it, otherwise some ftp clients will ask confirmation for each transfer
bin
cd /myIFSFolder
lcd /myIFSFolder
prompt
mput Test*
However. If you have "ssh" connection configured, and, if company policy allows it, I highly recommend spending an extra effort and install "rsync" on both ends
Then, from local host it will become simple
rsync -aPH /sourcedirectory/myIFSFolder user@desthost:/destdirectory
or
rsync -aPH /sourcedirectory/myIFSFolder/ user@desthost:/destdirectory/myIFSFolder
There are multiple benefits from using "rsync", man pages or docs elsewhere will provide more info.
------------------------------
Vladimir Kolobrodov
------------------------------
Original Message:
Sent: Tue April 02, 2024 02:02 PM
From: Michael Soucy
Subject: FTPing files from one LPAR to another
Greetings,
I have a question about using the FTP command mput. I'm still a little new to using FTP commands. If I want to put multiple files from an IFS directory on one LPAR onto the same IFS directory on another LPAR would something like this work? Do I always need to specify the "cd" command or can I specify the target directory on the mput command?
Example:
bin
namefmt 1
sendpasv
cd /myIFSFolder
mput /myIFSFolder/Test*
Thank you,
Mike
------------------------------
Michael Soucy
------------------------------