Re: [REQ] Questions on ftp program?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 16 February 2004 08:01 am, Zhuanshi He wrote:
> Dear All,
>
> I wrote  a script (listed below, ftp.sh) try to do ftp automatically. I
> have four more questions need your help.
>
> (a). How can I judge if the file will be downloaded already exists in my
> local directory. Which command I should add to ftp.sh
> (b). May I add more machine to file ~/.netrc
> (c). May I use same ftp.sh to do the "mput" command?
> (d). If the user is not anonymous, how can I change the ftp.sh?
>
> Thank u so much for giving me hints.
> It's very appreciated, if u can provide sampling script(s).
>
> Warm regards,
>
> Z. He
>
> ftp.sh


The only problem doing it this way is that you have very little flexibility... 
if the FTP server does something for which your script is unprepared then it 
will fail or hang.  You might be better off looking at "expect".  See:

http://www.mcpressonline.com/mc?50@xxxxxxxxxxxxxxx@.6ae5da73

Barry


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux