This is what I'm doing when I log into a FTP:
ftp user:password@server
ftp: user:password@server: Unknown host
ftp> echo HELLO WORLD!
ftp> quit
I'd like to do a one-line FTP command...
ftp user:password@server -command "echo HELLO WORLD"
or
"echo HELLO WORLD" | ftp user:password@server
Something similar... as part of a script I'm trying to create. Nothing is getting transferred, I just need to echo some instructions and this is the easiest way I've found to do it between two of my systems.
nick@AccessDenied:~$ ftp ftp> echo "hi" ?Invalid command ftp>
– nickguletskii Sep 14 '11 at 18:53ftp
doesn't have anecho
command.lftp
does, but it's purely local, so I don't see why you'd want to do that by itself.... – poolie Sep 14 '11 at 20:12