[vox-tech] recursive ftp

Ganesh S vox-tech@lists.lugod.org
Thu, 28 Feb 2002 10:57:18 +0530


This is a multi-part message in MIME format.

------=_NextPartTM-000-8d681873-2c08-11d6-a942-00b0d0d06be8
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Thanks Mark. I just tried this but there is no response from ncftp after the
mget. It seems like since my ftp server is a Windows NT machine which does
not have a directory listing similar to unix (eg. The first char in the
listing is NOT 'd' for a directory like in unix), these tools may not work
(just my guess !). How will he change directory, if it is not able to figure
out if it is a directory or not !

Am i missing something ?

Ganesh


-----Original Message-----
From: vox-tech-admin@lists.lugod.org
[mailto:vox-tech-admin@lists.lugod.org]On Behalf Of Mark K. Kim
Sent: Thursday, February 28, 2002 9:55 AM
To: vox-tech@lists.lugod.org
Subject: Re: [vox-tech] recursive ftp


I think you can do it with ncftp and some scripting.  Normally, you can
use ncftp like a normal ftp, but you can also pass a recursive option (ie:
`mget -r *`).  You can write a script and pass appropriate commands, kind
of like this:

   #!/bin/sh
   ncftp -u <username> <ftp.servername.serverdomain> <<EOF
   <password>
   bin
   mget -r /
   quit
   EOF

Of course, you'll need ncftp installed, and make the script file
executable.  Be careful about your password being in the open.

-Mark

On Thu, 28 Feb 2002, Ganesh  S wrote:

> Hi,
> I have a linux machine to which i would like to mirror a private ftp site
on
> a nightly basis. A windows NT machine is serving as the ftp server. I
tried
> tools like wget and rftp from my linux box to allow recursive ftp's from
the
> windows NT machine, to occur automatically. rftp works only if the fttp
> server is a unix machine. With wget, iam unable to get it to work. I have
> the username and password setup in .netrc. The command i gave was wget -r
> ftp://<IPaddress>/
> Iam able to log in to the site with this but comes out with a message
> "Download 0 bytes in 0 files".
>
> Can anyone suggest/help me with a solution ?
>
> Thanks.
> Ganesh
>
>

--
Mark K. Kim
http://www.cbreak.org/
PGP key available upon request.


_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


------=_NextPartTM-000-8d681873-2c08-11d6-a942-00b0d0d06be8
Content-Type: text/plain;
	name="Wipro_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="Wipro_Disclaimer.txt"

**************************Disclaimer************************************
      


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 ********************************************************************

------=_NextPartTM-000-8d681873-2c08-11d6-a942-00b0d0d06be8--