1834072 Members
2607 Online
110063 Solutions
New Discussion

Regarding ftp commands

 
ajk_2
Advisor

Regarding ftp commands

Hi all,

I want to copy some files (including some files in subdirectory) from HPUX server to my personal computer. It seems ftp's mget command is not good copying many files in many subdirectories. Any other comands or application can do it faster? Thanks a lot!

Regards
ajk
16 REPLIES 16
Michael Tully
Honored Contributor

Re: Regarding ftp commands

If they are just text files your could try using:

cat file1 file2 | gzip > foo.gz

then ftp the foo.gz file in binary format.
Anyone for a Mutiny ?
ajk_2
Advisor

Re: Regarding ftp commands

They are just text files. I don't need to zip them. All I concern that I just want to copy those file and under other subdirectories' files to my PC at once. Could you help? Thanks!

ajk
Animesh Chakraborty
Honored Contributor

Re: Regarding ftp commands

Hi,
You can use some software which are able to do ftp very efficiently like Exceed etc.
Did you take a backup?
Michael Tully
Honored Contributor

Re: Regarding ftp commands

yes you could use exceed. ALthough it's primary function is X based connections, it does have a useful ftp facility which looks very similar to using explorer on windoze.
Anyone for a Mutiny ?
Deepak Extross
Honored Contributor

Re: Regarding ftp commands

Ftp is not capable of sending nested files in one go. You'll have to do a "cd" to the path where the file is before sending it across each time. with an appropriate "lcd" on the local machine.
I'd suggest creating an archive and ftp'ing it across. That way, you get to keep the directory structure and save ftp time as well.
ajk_2
Advisor

Re: Regarding ftp commands

Is the Exceed windows based? or unix based?
ajk_2
Advisor

Re: Regarding ftp commands

Is the Exceed windows based? or unix based?
and where can I download it? Thanks.
Kenny Chau
Trusted Contributor

Re: Regarding ftp commands

As what I understand from your questions, you want to ftp some files from different directories. However, mget command may not do this well. So I suggest you to write a text file in your pc:

open
user
bin
cd
mget
cd
mget
bye

Then use the command "ftp -i -n < textfile" to do it automatically.

On the other hand, many software can do drag and drop for ftp. However, it will copy the whole directory to your destination. If you want to get some files from different directories, the above text file will work.

Hope this helps.
Kenny.

ps. If you want to do it automatically like a cron job in your pc, you can get the FTP Voyager Schedular(shareware) to do it for you.
Kenny
Sanjay_6
Honored Contributor

Re: Regarding ftp commands

Hi,

Try ws-ftp or cuteftp. They can do recursive copy and has a windows friendly interface. You can download this and some more softwares / application from http://www.zdnet.com/downloads/

Hope this helps.

Regds
Michael Tully
Honored Contributor

Re: Regarding ftp commands

Exceed comes from a company called Hummingbird. Sorry you can't download it and it is not free.

Have a look at these from the porting centre. Perhaps one of them can do the job. There are quite a few to look at.

http://hpux.connect.org.uk

Anyone for a Mutiny ?
Animesh Chakraborty
Honored Contributor

Re: Regarding ftp commands

Hi,
Exceed is wondows based and can be foung at
www.hummingbird.com
http://www.hummingbird.com/collateral/exceed_datasheet2_EN.pdf
To buyemail at : sales@hummingbird.com

Not free :(


Did you take a backup?
Sanjay_6
Honored Contributor

Re: Regarding ftp commands

Hi,

Here are some of the ftp programs which are windows based and available for free / shareware download,

http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/search.html?link=1&UTcat=internet&UTsubcat=ftp&Usrt=date&Usubp=Internet_FTP

I have tried cuteftp. That is good. Even ws-ftp is good.

Hope this helps.

Regds
Frank Slootweg
Honored Contributor

Re: Regarding ftp commands

Your PC, assuming a PC with Microsoft Windows, probably has pax. If so, you can 'pack' the files with pax(1) (or tar(1) or cpio(1)) on HP-UX, FTP (binary mode!) the archive to your PC and unpack the archive with pax(1).

On HP-UX see the pax(1) manual page.

On Microsoft Windows, at least on NT, see Start -> Help -> Contents -> Windows NT Commands -> Windows NT Commands -> P -> pax
Matt Hearn
Regular Advisor

Re: Regarding ftp commands

Just a thought; you could completely skip around FTP (it's unsecure anyway, don't know if that's an issue for you like it sometimes is for us) and use scp (secure copy). It works like rcp but uses the secure shell encryptions, and there's free windows software available for it.

http://winscp.vse.cz/

That's a link to the WinSCP homepage; it's a decent GUI software, and it will recursively copy files from one system to another.

(Obviously you have to have ssh installed and running on your remote HP-UX system.)
Richard Darling
Trusted Contributor

Re: Regarding ftp commands

I have all our M$users here using this free ftp product to get files from L1000. Free, easy to install and ANYBODY can use it.
RD

http://www.smartftp.com
John Carr_2
Honored Contributor

Re: Regarding ftp commands

Hi

an alternative method to achieve the same results command rcp

you will need to have a .rhosts file for the login being used on the destination server to allow this to work.

rcp -r source_directory destination_server:/destination_directory

good luck
John.