ftpput script: perl ?
Peter L. Peres
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sat Apr 17 20:18:10 UTC 2004
On Sat, 17 Apr 2004, 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.
Ok. I did not know that standard ftp can be automated like that. Now, that
I'm reading the manual page to the end (as I should have a long time ago),
I know. Thanks,
Peter
PS: Is there a Perl solution anyway ? I'd like to see how others program
sockets after having done my own version.
--
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