I'm logged into a Linux server and use ftp placeftp.thing.com to connect to a different server.
I receive the message below and now I can transfer files to that server, however a basic Unix command echo $SHELL doesn't work. Is it because I'm in binary transfer mode or simply because of the FTP connection?
Connected to placeftp.thing.com (12.10.115.175).
220 You are connected to PLACEFTP.THING.COM.
331 User name okay, need password.
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> echo $SHELL
?Invalid command
I might be asking my question incorrectly, but what am I misunderstanding about FTP connections?
SITEFTP verb. It's unlikely to give you a shell-like environment with variables and so on - it's more likely implemented using a simpleexec()/wait().