If you can't install Net::FTP, the following works with the ftp.exe
program on NT to get the file /tmp/frazzle in binary mode:
open FTP, "> tmpftp.$$";
print FTP <<EOF;
$username
$password
bin
get /tmp/frazzle
bye
EOF
close FTP
system "ftp -s:tmpftp.$$ $hostname";
unlink tmpftp.$$
on unix, the system call would be this i believe:
system "ftp $hostname < tmpftp.$$";
good luck
Luke
On Wed, 11 Jul 2001, Michael Fowler wrote:
> On Wed, Jul 11, 2001 at 10:20:58AM -0700, [EMAIL PROTECTED] wrote:
> > I have to automate ftp process using perl or shell scripts. At the moment I
> > cannot install NET:FTP class. So any pointers for me on how do this.
>
> Why can't you install Net::FTP? Really, it's the best solution to speaking
> FTP in Perl. Perhaps you think you can't install it because you don't have
> proper permission, in which case refer to perldoc -q "my own module" or
>
>http://www.perldoc.com/perl5.6/pod/perlfaq8.html#How%20do%20I%20keep%20my%20own%20module%2flibrary%20directory%3f
>
>
> Michael
> --
> Administrator www.shoebox.net
> Programmer, System Administrator www.gallanttech.com
> --
>