Re: [REQ] Questions on ftp program?
From: Barry L. Kline (blkline_at_attglobal.net)
Date: 02/16/04
- Previous message: aT: "Ip traffic Monitoring"
- In reply to: Zhuanshi He: "[REQ] Questions on ftp program?"
- Next in thread: Nabin Limbu: "Re: [REQ] Questions on ftp program?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: redhat-list@redhat.com Date: Mon, 16 Feb 2004 08:50:14 -0500
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@1.W6rVbsyvox3.1@.6ae5da73
Barry
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: aT: "Ip traffic Monitoring"
- In reply to: Zhuanshi He: "[REQ] Questions on ftp program?"
- Next in thread: Nabin Limbu: "Re: [REQ] Questions on ftp program?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|