ftpput script: perl ?
William Park
opengeometry-FFYn/CNdgSA at public.gmane.org
Sat Apr 17 20:15:47 UTC 2004
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.
--
William Park, Open Geometry Consulting, <opengeometry-FFYn/CNdgSA at public.gmane.org>
Linux solution/training/migration, Thin-client
--
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