Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I trying to setup a ftp job which will recursivly download a directory from a remote server...
here's the command I execute...
ncftpget -R -d log -u <username> -p <password> userftp.port.ac.uk /home/james '//ls32/public'
the command takes a few seconds does nothing and the returns to prompt without error..
However looking at the logs it seems that ncftp cannot obtain a recursive listing...
LibNcFTP 3.1.3 (March 4, 2002) compiled for linux-x86
Uname: Linux|robinjam.portsmouth.uk.ibm.com|2.4.18-3|#1 Thu Apr 18 07:37:53 EDT 2002|i686
Glibc: 2.2.5 (stable)
220: The University of Portsmouth
FTP Service
Service Ready for new User
Connected to userftp.port.ac.uk.
Cmd: USER .cam10902.cam.student.lan.port
331: Password Needed for Login
Cmd: PASS xxxxxxxx
230: User cam10902 Logged in Successfully
Cmd: PWD
257: "/USER/home/students/CAM/CAM10902" is Current Directory
Logged in to userftp.port.ac.uk as .cam10902.cam.student.lan.port.
Cmd: FEAT
500: 'FEAT' : Unknown Command
Cmd: HELP SITE
214: Syntax: SITE site-cmd (get valid site commands from QUOTE <sp> SITE <sp> HELP)
Cmd: CLNT NcFTPGet 3.1.3 linux-x86
500: 'CLNT NcFTPGet 3.1.3 linux-x86' : Unknown Command
Cmd: PWD
257: "/USER/home/students/CAM/CAM10902" is Current Directory
Cmd: CWD //ls32/public
250: Directory successfully changed to "/public/"
Cmd: CWD /USER/home/students/CAM/CAM10902
550: Invalid Path
Cmd: MDTM //ls32/public.tar
550: Invalid Path
Cmd: TYPE I
200: TYPE Command OK I
Cmd: PASV
227: Entering Passive Mode (148,197,251,144,11,44)
Cmd: RETR //ls32/public.tar
550: Invalid Path
Cmd: PWD
257: "/public/" is Current Directory
Cmd: CWD //ls32/public
250: Directory successfully changed to "/public/"
Cmd: TYPE A
200: TYPE Command OK A
Cmd: PASV
227: Entering Passive Mode (148,197,251,144,11,45)
Cmd: LIST -Ra
550: No Such Directory "/public/-Ra"
Cmd: CWD /public/
250: Directory successfully changed to "/public/"
Cmd: CWD /public/
250: Directory successfully changed to "/public/"
Cmd: QUIT
221: Closing Session
I tried adding the -T option to prevent the tar errors... and got this.....
230: User cam10902 Logged in Successfully
Cmd: PWD
257: "/USER/home/students/CAM/CAM10902" is Current Directory
Logged in to userftp.port.ac.uk as .cam10902.cam.student.lan.port.
Cmd: FEAT
500: 'FEAT' : Unknown Command
Cmd: HELP SITE
214: Syntax: SITE site-cmd (get valid site commands from QUOTE <sp> SITE <sp> HELP)
Cmd: CLNT NcFTPGet 3.1.3 linux-x86
500: 'CLNT NcFTPGet 3.1.3 linux-x86' : Unknown Command
Cmd: CWD //ls32
250: Directory successfully changed to "/"
Cmd: PWD
257: "/" is Current Directory
Cmd: CWD public
250: Directory successfully changed to "/public/"
Cmd: CWD /
250: Directory successfully changed to "/"
Cmd: PWD
257: "/" is Current Directory
Cmd: CWD public
250: Directory successfully changed to "/public/"
Cmd: PASV
227: Entering Passive Mode (148,197,251,144,11,40)
Cmd: LIST -Ra
550: No Such Directory "/public/-Ra"
Cmd: CWD /
250: Directory successfully changed to "/"
Cmd: CWD /
250: Directory successfully changed to "/"
Cmd: QUIT
221: Closing Session
Any ideas, think the remote system is netware if that makes a difference?
are there any other ways of doing this??
I use ncftpget quite a lot, and from the top of my head this looks ok, I do normally only pull single files, but have used it successfuly to archive entire websites etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.