Re: FTP that will script please

2000-01-30 Thread Cokey de Percin
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.

Re[2]: FTP that will script please

2000-01-29 Thread Perry Blalock
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

Re: FTP that will script please

2000-01-29 Thread Thomas K. Gamble
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

Re: FTP that will script please

2000-01-26 Thread J. Scott Kasten
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

Re: FTP that will script please

2000-01-26 Thread Martin Brown
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

Re: FTP that will script please

2000-01-26 Thread Robert Burton
>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

Re: FTP that will script please

2000-01-26 Thread Steven W Orr
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

Re: FTP that will script please

2000-01-26 Thread Greg W
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

RE: FTP that will script please

2000-01-26 Thread Ward William E PHDN
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";

Re: FTP that will script please

2000-01-26 Thread Gustav Schaffter
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");

Re: FTP that will script please

2000-01-26 Thread Nico De Ranter
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

FTP that will script please

2000-01-26 Thread Jim Baxter
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