Re: [REDHAT] Re: Help with scripts...URGENT

2002-03-29 Thread David Talkington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Kramer wrote: >I missed the beginning of this thread, but if you're just trying to >automatically ftp a file from a server, look at wget. > >wget ftp://other.server.com/path/to/file >Many options. Very powerful. wget seems to have trouble wi

Re: [REDHAT] Re: Help with scripts...URGENT

2002-03-29 Thread David Kramer
On Thu, 28 Mar 2002, fred smith wrote: > On Thu, Mar 28, 2002 at 12:27:21PM -0600, Ed Wilts wrote: > > On Wed, Mar 27, 2002 at 12:06:10PM +, Alan Peery wrote: > > > > > > I don't know if you can drive ftp with a single command line, something > > > like > > > > > > echo "get foo" > fred >

Re: Help with scripts...URGENT

2002-03-28 Thread fred smith
On Thu, Mar 28, 2002 at 12:27:21PM -0600, Ed Wilts wrote: > On Wed, Mar 27, 2002 at 12:06:10PM +, Alan Peery wrote: > > > > I don't know if you can drive ftp with a single command line, something > > like > > > > echo "get foo" > fred > > ftp -ine < fred > > echo $? > > You've got a few ch

Re: Help with scripts...URGENT

2002-03-28 Thread Ed Wilts
On Wed, Mar 27, 2002 at 12:06:10PM +, Alan Peery wrote: > > I don't know if you can drive ftp with a single command line, something > like > > echo "get foo" > fred > ftp -ine < fred > echo $? You've got a few choices. ncftpls will give you a directory listing on the remote server. ncftp

Re: Help with scripts...URGENT

2002-03-28 Thread Alan Peery
Joao Borsoi Soares wrote: >Thanks Francisco, that worked. But I still don't know how to check out if a >specific file exists in the remote server... > I don't know if you can drive ftp with a single command line, something like echo "get foo" > fred ftp -ine < fred echo $? If the file "foo" do

Re: Help with scripts...URGENT

2002-03-18 Thread Joao Borsoi Soares
Thanks Francisco, that worked. But I still don't know how to check out if a specific file exists in the remote server... Joao. Francisco Neira wrote: > Not so difficult, I do it to update a database from one server to other. > > ftp -ine < /home/me/my_ftpscript > > and my_ftpscript contains: >

Re: Help with scripts...URGENT

2002-03-15 Thread Francisco Neira
Not so difficult, I do it to update a database from one server to other. ftp -ine < /home/me/my_ftpscript and my_ftpscript contains: open ftp.mydomain.com user usernam passwd type binary get filename1 filename1 ... get filenameN filenameN close Hope this helps Francisco >>> [EMAIL PROTECT

Re: Help with scripts...URGENT

2002-03-15 Thread Joao Borsoi Soares
Rick, I think I was not clear. I know about the command rename... I just don't know how to connect throught script sending login, password, and interacting with the ftp server... Joao. Rick van der Linde wrote: > >Hello list, > > > >I need help with some scripts I must do. I'm not used to scrip

Re: Help with scripts...URGENT

2002-03-14 Thread Rick van der Linde
>Hello list, > >I need help with some scripts I must do. I'm not used to script >programming so I don't know the possibilities. In fact I need scripts >for uploading, downloading and renaming archives throught FTP >connection. For upload/download, I thought of using wget. The most >problem will b