ftpput script: perl ?

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


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.

-- 
	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