[CentOS] Using shell variables inside the ftp client

Thu Jul 21 22:12:42 UTC 2011
John R Pierce <pierce at hogranch.com>

On 07/21/11 1:52 PM, Always Learning wrote:
>> I have a script that opens an ftp connection to a non-*nix system.
>> >  I desire to change directories on the host system using a shell
>> >  variable to set the cd directory.  However, I cannot seem to
>> >  discover how this is done.
> Check the FTP configuration file on the remote server. There might be a
> block to stop you moving-out of your log-on FTP directory.

more likely, the ftp program is processing his command lines, and it 
doesn't know anything about $parameter substitution.

I suggest using wget or lftp or similar rather than conventional ftp.



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast