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: 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
Perl has a library that allows that. I've used it for years, and it's very reliable except for one problem... the password feature is unencrypted. You would need to use the require "ftp.pl"; directive in your program to use the library, though. I'll send you a short sample with this, but it's u

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