Operating System - HP-UX
1821055 Members
2366 Online
109631 Solutions
New Discussion юеВ

FTP all folders from win CD to HP-UX 11.31 folder

 
SOLVED
Go to solution
Joe Milici
Advisor

FTP all folders from win CD to HP-UX 11.31 folder

My DVD drive on my HP-UX server died and I need to install some software. I have a CD with the programs but there are many subfolders. How can I ftp all of these files including the subfolders onto the Unix server?
23 REPLIES 23
Steven E. Protter
Exalted Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Shalom,

You really can't ftp sub folders effectively

mput does all the files in the directly but it will take some time to get the job done and I've never tried it on sub folders.

You could stick the windows CD in the Unix box and do a samba or cifs or vfat or cdfs mount on it and get the data off directly.

Or winzip the CD and send up a single fine and then use gzip to unzip it.

Lots of ways to skin this cat.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Nelson
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

To expand on Stevens ideas..

If you are running 11.11 or 11.23 you can create an ISO image from the CD. ftp that to the unix server then use PFS to mount the ISO just like a cd.

http://h20229.www2.hp.com/downloads/iso_format.html?jumpid=reg_R1002_USEN

Steven Schweda
Honored Contributor
Solution

Re: FTP all folders from win CD to HP-UX 11.31 folder

Assuming that nothing untoward happens to the
file names, an easy way might be to use some
Zip program on the Windows system to create a
Zip archive there, use FTP to copy that to
the HP-UX system, and extract the files there
using the usual Info-ZIP UnZip program.

http://www.info-zip.org/

If you have more than 2GB of stuff (that is
if you were lying about the "CD" part, and
it's really a DVD more than about half full),
then you can expect some large-file
complications. Otherwise, what could go
wrong?
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Ok. If I use pkzip and then gzip. What would the gzip syntax be to keep the folders?
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Steven,

I clicked on properties and it shows 496MB used on the cd.
Steven Schweda
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

> You really can't ftp sub folders effectively

Maybe _you_ can't. I often use wget for
recursive FTP transfers, and it often works
just fine.

I assume that it's not suitable in this case,
because it only fetches files, and I assume
that the (unspecified) Windows system here
lacks an FTP server.

> [...] then use gzip to unzip it.

I find that UnZip generally works better
than gzip on Zip archives. According to:

http://winzip.com/wzdifs.htm

[...] WinZip supports all operations on
gzip files except creating new ones.

So, I wouldn't expect it to make a useful
gzip archive of a CD.

> Lots of ways to skin this cat.

Some may even work.
Steven Schweda
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

> What would the gzip syntax be to keep the
> folders?

Good question. That's why I'd use Info-ZIP
UnZip.

Gzip is normally used with "tar" for a good
reason. It's a file compression program, not
a general purpose file archiving and
compression program.
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Steven.

I have zipped the files and set the winzip option to keep directoires. Do I just ftp the binary to the unix server and run

unzip dpzip.zip?
Dennis Handly
Acclaimed Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

>Do I just ftp the binary to the unix server and run: unzip dpzip.zip?

Yes. Make sure you use binary mode to copy.
You could use "unzip -l dpzip.zip" to see if everything is there.
Steven E. Protter
Exalted Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Shalom,

Yes, just ftp the zipped image up and then unzip on the Unix system.

Still isn't it easier to must mount the CD itself on Unix?

Like I said, lots of ways to skin this cd.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
piyush mathiya
Trusted Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Hi Joe,
I have read all replies, It is really very good and surely it will help you to solve the problem, but one one thing which I want to share with you is I also faced the same problem and at that time, I have used another unix box to copy the files, like I have mount that CD to another server and made tar of these files and simply transfer from one to another. If privious answer will not solve your problem then you can use this way. . .

Regards,
Piyush Mathiya
Steven Schweda
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

> My DVD drive on my HP-UX server died [...]

> Still isn't it easier to must mount the CD
> itself on Unix?

You _do_ read these things before answering,
don't you?
Torsten.
Acclaimed Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

I would simply use something like this to ftp the files:

http://filezilla-project.org/


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
chindi
Respected Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

hi,
I would go for core-ftp lite software....
Nyck_1
Super Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

WINscp is pretty good for this kinda situation
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Unfortunalte;y I do not have unzip on my server. I saw GZIP was also recommended. Is there a way to test this command before executing?
Torsten.
Acclaimed Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Look in /usr/contrib/bin what you have.

Is gunzip there?

Anyway, I would prefer to use a ftp client ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Yes I have gunzip. Keep in mind I have zipped up the CD using winzip and have ftp'd the binary to the server. It has a .zip extension. I am trying to unzip so I can run the installer.
Tim Nelson
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Don't forget to take a couple seconds and award points for all the time and efforts..Just use the pull down next to each response and pick a number. Then click submit.

Clicking on your name will also lead you to all past posts that could use some point assignment.

Steven Schweda
Honored Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

> Unfortunalte;y I do not have unzip on my
> server.

That should be a pretty easy-to-solve
problem. As mentioned earlier, source kits
may be found at:

http://www.info-zip.org/

Google can normally find HP-UX binary kits
pretty easily in the usual places, like:

http://hpux.cs.utah.edu/hppd/hpux/Misc/unzip-5.52/
http://hpux.cs.utah.edu/hppd/hpux/Misc/zip-3.0/
Nyck_1
Super Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

you can get unzip from here also:-

http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/
SKR_1
Trusted Contributor

Re: FTP all folders from win CD to HP-UX 11.31 folder

There is an leach ftp software with which you can ftp all folders from windows to UNIX server.

Thanks

SKR
Joe Milici
Advisor

Re: FTP all folders from win CD to HP-UX 11.31 folder

Thanks to all