LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2003, 10:07 AM   #1
mr_mandrill
Member
 
Registered: Aug 2002
Location: UK
Distribution: Slackware 8.1
Posts: 74

Rep: Reputation: 15
ncftpget problem


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??
 
Old 12-21-2003, 06:41 AM   #2
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
Try:

ncftpget -R -d stdout -u username -p password ftp.hostname /local/dir/from/root/ ' www.hostname/userdir/folder/to/download/'

eg.

ncftpget -R -d stdout -u rambo -p 2sQ_y9v5 ftp.myexternaldomain.com /home/rambo/bacu_up/ 'www.myexternaldomain.com/home/guest/myworkfolder/'

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.
 
Old 01-25-2004, 04:05 PM   #3
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Rep: Reputation: 30
I'd like to use ncftpget to download a file via ftp ... In the terminal window I tried

ncftpget ftp://ftp.scyld.com/pub.....

But the error message I see in the terminal is

ncftpget: command not found


Does this mean I don't have it installed? How can I use nctftpget in the terminal?

Any help would be greatly appreciated.
 
Old 02-01-2004, 08:44 AM   #4
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
try:
whereis ncftpget
to make sure that it is installed...


You may need to give the full path to the command.
ie.
/usr/bin/ncftpget
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with ncftpget/ncftpput ?? nickiv Linux - Networking 1 08-29-2005 07:53 AM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration