[KLUG Members] FTP code

Scott Thurmond members@kalamazoolinux.org
Mon, 15 Oct 2001 16:39:14 -0400


Thanks.  I found a perl example and it worked.  Can you tell me where perl
writes log information?

I setup the directory
/usr/local/ftpfiles
for the script to put files in.  After running it and the files appeared in
this directory, I removed the ftpfiles subdirectory to see what error
messages I would get.  To my surprise, I didn't get any - and the script
appeared to complete.  I checked and it had not put the file in another
location, it had not created the directory and I couldn't find a log that it
wrote to.

Any suggestions?

-----Original Message-----
From: members-admin@kalamazoolinux.org
[mailto:members-admin@kalamazoolinux.org]On Behalf Of
Adam_Bultman@gmx.net
Sent: Monday, October 15, 2001 2:45 PM
To: members@kalamazoolinux.org
Subject: Re: [KLUG Members] FTP code


Perl is super-swell for doing this.  I made a perl program that ftp'ed to a
server and updated my IP address, so I could always have it (I had dial-up).

However, I would recommend, if you are going to write a program, to use scp
instead of ftp, since with ftp, you have your "cheese in the wind", with
passwords being sent in plaintext all the live long day.

Anyway, perl can do this with Net::FTP in no time flat.  I'm sure there are
scripts lying around the 'net just ready to be picked and edited.

Adam

> I need to write an application that will automatically FTP to servers.
> Scheduling a cron job won't do because I need to be able to handle the
> return codes from the FTP interpreter.  Does anyone know where I can find
> a
> sample piece of c/c++ or Java code?
>
> Kind Regards,
> -Scott
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
> 
>

--
Adam Bultman

adam_bultman@bigfoot.com

Sent through GMX FreeMail - http://www.gmx.net
_______________________________________________
Members mailing list
Members@kalamazoolinux.org