Perry Blalock wrote:
>
> Hello Thomas,
>
> Saturday, January 29, 2000, 2:45:00 PM, you wrote:
>
> TKG> On Wed, 26 Jan 2000, Jim Baxter wrote:
> >> Hi
> >>
> >> We do not seem to be able to run ftp from a shell script or script ftp.
> >> The man page talks about macros but they go away at close.
Hello Thomas,
Saturday, January 29, 2000, 2:45:00 PM, you wrote:
TKG> On Wed, 26 Jan 2000, Jim Baxter wrote:
>> Hi
>>
>> We do not seem to be able to run ftp from a shell script or script ftp.
>> The man page talks about macros but they go away at close.
>> What we need is the ability to start
On Wed, 26 Jan 2000, Jim Baxter wrote:
> Hi
>
> We do not seem to be able to run ftp from a shell script or script ftp.
> The man page talks about macros but they go away at close.
> What we need is the ability to start ftp, login and get (or put) a list of
> files and
> log off all from a shell
Actually, wget does ftp as well as http. It is totally command line driven,
and automaticly resumes file transfers where they left off when the conection
gets broken, much like ncftp.
On Wed, Jan 26, 2000 at 11:12:08AM -0800, Martin Brown wrote:
> On Wed, 26 Jan 2000, Jim Baxter wrote:
>
> > Hi
On Wed, 26 Jan 2000, Jim Baxter wrote:
> Hi
>
> We do not seem to be able to run ftp from a shell script or script ftp.
> The man page talks about macros but they go away at close.
> What we need is the ability to start ftp, login and get (or put) a list of
> files and
> log off all from a shell
>Hi
>
>We do not seem to be able to run ftp from a shell script or script ftp.
>The man page talks about macros but they go away at close.
>What we need is the ability to start ftp, login and get (or put) a list of
>files and
>log off all from a shell script
>
>Can some one tell me how to do it or
I'm sort of amused at the suggestions that are coming out of this
question. The correct answer is: (drum roll please!)
expect
expect is a scripting language designed for programming interactive
responces, especially for programs that do not do IO on std{in,out}.
Ftp *does* read from stdin but y
As info that was passed to me.
a .netrc file
or
a package called expect , look on freshmeat.. most liked expect cause
can be used for many things.
*** REPLY SEPARATOR ***
On 26/01/00 at 9:53 Jim Baxter wrote:
>Hi
>
>We do not seem to be able to run ftp from a she
de 30\n";
flush(STDOUT);
&error(30,"Exiting due to problem changing mode to Binary");
}
printflush (STDOUT,"Changing mode to Binary\n");
if (&ftp::get($file,$local_file_name)!=1) {
printf "Can't get $file\n";
Jim,
Use perl: (I'm sure someone will improve on this script. It's just a
quick hack.)
#!/usr/bin/perl -w
use Net::FTP;
$ftp=Net::FTP->new('ftp-server',Timeout => 30,Debug => 0) or die("Failed
to connect. : $! $? $@\n");
$ftp->login('user-name',,'password') or die("Failed to login. : $!
$?\n");
I used to use the following script to do that:
---
#!/bin/sh
{
echo "bin" ;
echo "prompt" ;
echo "cd pub/" ;
echo "get thefile" ;
echo "bye";
} | ftp ftp.somewhere.com
--
Nico
On Wed, 26 Jan
Hi
We do not seem to be able to run ftp from a shell script or script ftp.
The man page talks about macros but they go away at close.
What we need is the ability to start ftp, login and get (or put) a list of
files and
log off all from a shell script
Can some one tell me how to do it or where to
12 matches
Mail list logo