Re: Need help.
From: Barry Margolin (barry.margolin_at_level3.com)
Date: 07/15/03
- Next message: laura fairhead: "Re: Get first instance + line above"
- Previous message: Heiner Steven: "Re: mail attachment command line"
- In reply to: parth: "Need help."
- Next in thread: parth: "Re: Need help."
- Reply: parth: "Re: Need help."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 14 Jul 2003 22:29:02 GMT
In article <cef5d0a6.0307141215.13019673@posting.google.com>,
parth <parth002000@yahoo.com> wrote:
>I am writting a korn shell script to ftp files to another box. But the
>catch is that I have to put file every 30 seconds, without
>disconnecting ftp.
>
>I am using put (put $filename)but unable supply new filename as ftp
>don't have any command for looping..
One way to do this is with a coprocess. Start a coprocess running ftp, and
then have the main process go into a loop sending "put $filename" to the
pipe to the coprocess.
Other solutions would be to write the script in Perl using the Net::FTP
module, or in Expect.
-- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Next message: laura fairhead: "Re: Get first instance + line above"
- Previous message: Heiner Steven: "Re: mail attachment command line"
- In reply to: parth: "Need help."
- Next in thread: parth: "Re: Need help."
- Reply: parth: "Re: Need help."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading