ftpput script: perl ?

Chris F.A. Johnson c.f.a.johnson-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sat Apr 17 20:48:19 UTC 2004


On Sat, 17 Apr 2004, William Park wrote:

> On Sat, Apr 17, 2004 at 03:28:13PM -0400, Chris F.A. Johnson wrote:
> > On Sat, 17 Apr 2004, Peter L. Peres wrote:
> >
> > >
> > > Hi, I wrote a small ftp upload script in tcl (without using expect). Now
> > > I'm looking for a perl equivalent. The script should be small and if
> > > possible implemented natively (no imported modules). Is there such a thing
> > > ?
> >
> >     I consider perl to be an imported module. ;)
> >
> >     I do it in a simple shell script:
> >
> > echo "binary
> > put file
> > mput xx.*" | ftp -i hostname
> >
> >     The username and password are in $HOME/.netrc.
>
> OP may want to experiment how much "sleep" is needed between FTP
> commands.

    None is necessary.

-- 
	Chris F.A. Johnson                      http://cfaj.freeshell.org
	=================================================================
                Everything in moderation -- including moderation
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list