Had some free time today was looking the zsh manual (
https://zsh.sourceforge.io/Doc/zsh_us.pdf). Turns out the zsh has a built in tcp and ftp module. MacOS X switch over to zsh as standard shell a couple of years ago.
(this should work with any zsh installation).
If you happen to using zsh and was not aware if this, comes in pretty heading getting files back and forth.
In your .zprofile file add:
zmodload zsh/net/tcp
zmodload zsh/zftp
On my system dns names do not seem to work but IP's do.
Sample connection:
user ~ % zftp open 10.10.41.204 bruno
=============================================================
Welcome.
This is a running RSX-11M-PLUS system.
=============================================================
Password:
Logged in to system.
user ~ % zftp dir
Directory DU:[ERIC]
FIZZBUZZ.JOU 1. 27-FEB-2023 04:53:44 [200,210] (RD,RWED,,)
LOGIN.TXT 1. 4-JUN-2022 22:49:01 [200,210] (RWED,RWED,RWED,R)
HELLO.MAC 2. 5-JUN-2022 07:01:47 [200,210] (RWED,RWED,RWED,R)
LOGIN.CMD 1. 5-MAR-2023 13:01:51 [1,1] (RWED,RWED,RWED,R)
FIZZBUZZ.MAC 4. 27-FEB-2023 07:15:42 [200,210] (RWED,RWED,RWED,R)
INDEX.HTM 1. 9-MAR-2023 23:03:19 [200,210] (RWED,RWED,RWED,R)
START.HTM 1. 9-MAR-2023 23:12:09 [200,210] (RWED,RWED,RWED,R)
STOP.HTM 1. 9-MAR-2023 23:12:33 [200,210] (RWED,RWED,RWED,R)
LOGOUT.CMD 1. 10-MAR-2023 16:47:04 [200,210] (RWED,RWED,RWED,R)
PUBLIC.TXT 1. 10-MAR-2023 11:53:05 [200,210] (RWED,RWED,RWED,R)
GETDIR.CMD 1. 10-MAR-2023 16:37:45 [200,210] (RWED,RWED,RWED,R)
HELLO.TSK 4. C 5-JUN-2022 06:46:42 [200,210] (RWED,RWED,RWED,R)
FIZZBUZZ.OBJ 2. 5-JUN-2022 19:32:45 [200,210] (RWED,RWED,RWED,R)
FIZZBUZZ.TSK 7. C 5-JUN-2022 19:33:01 [200,210] (RWED,RWED,RWED,R)
user ~ % zftp ls
FIZZBUZZ.JOU
LOGIN.TXT
HELLO.MAC
LOGIN.CMD
FIZZBUZZ.MAC
INDEX.HTM
START.HTM
STOP.HTM
LOGOUT.CMD
PUBLIC.TXT
GETDIR.CMD
HELLO.TSK
FIZZBUZZ.OBJ
FIZZBUZZ.TSK
user ~ % zftp get logout.cmd > logout.cmd
user ~ % cat logout.cmd
.enable quiet
set /named
set /def=[eric]
pip *.*;* /pu:4
user ~ % zftp close
Thank you for using this ftp service.
Data traffic was 61.0 bytes in 1 file.
Total traffic was 1.32 KB in 3 transfers.
There is also a curses module zcurses