Showing results for 
Search instead for 
Did you mean: 

Linux and HP-UX

Go to solution
Samuel Mathew
Frequent Advisor

Linux and HP-UX

I am going to introduce Linux machines to an HP-UX environment and then connect some CNC machines to the Linux machines that were earlier linked to HP-uX using Terminal servers.
1. I have to mount directories from the linux on to the HP-UX. Have any body done such mixed environments? I am sure some of you might have. Will somebody give me an advice on as to this will work? Or is there any hitches?
2. I have to run a shell script that was written for HP-UX to run on Linux? Will it work? I would appreciate a reply.
Steven E. Protter
Exalted Contributor

Re: Linux and HP-UX

I have experience in such a mixed environment.

The primary tool for network connectivity that works across all platforms is nfs.

CIFS/9000 & Samba has better security and throughput and does the same thing plus shares printers.

As far as the scripts go:

The shell in the top of the scripts will be different.

As far as the commands go, if they are generic UNIX they will work. If they include the full path name of the command, they will have to be adjusted.

Proprietary HP-UX commands won't work, though lvm has been ported to linux.

The PATH and TERM variables will probably need to be adjusted based on actual locations anf files.

You'll run into lots of little glitches, and the best thing you can do for quality assurance is this:

Write a test plan to test scripts and functionality.


Steven E Protter
Owner of ISN Corporation
Bill Douglass
Esteemed Contributor

Re: Linux and HP-UX

If you're going to share files via NFS, I recommend using the hp-ux host as the server and mounting the volumes on the linux clients. Linux has a sad history as a NFS server, and is only slowly getting better.

As for your scripts, try debugging them under LInux by adding the -x command to your shell specification:

#!/bin/sh -x

It will help you find errors in script execution.
Stuart Browne
Honored Contributor

Re: Linux and HP-UX

*blink* it does? We've been using it here in the office without fault for a number of years.

But I would agree that the HP-UX NFS implementation would be better ;)
One long-haired git at your service...
Samuel Mathew
Frequent Advisor

Re: Linux and HP-UX

Thanks, gentlemen. I appreciate the quick answers. It gives me a way to go forward. I will contact if I have any glithes.
Samuel Mathew
Frequent Advisor

Re: Linux and HP-UX

Thanks, gentlemen. I appreciate the quick answers. It gives me a way to go forward. I will contact if I have any glitches.
John Meissner
Esteemed Contributor

Re: Linux and HP-UX

we currently have 90+ HP-UX servers and we recently started with our Linux servers. Our counterparts in France decided to use IBM as the server vendor and so far I must say that I'm not too hapy with IBM's support. HP's support is SO much better.

As for differences or issues. You'll have to get used to the bash shell. not a big difference though. Most everything will switch over. you'll need to change the first line in you scripts to reflect
#! /bin/bash
instead of
#! /usr/bin/ksh
I'd recommend going through your scripts then and testing them to see if they work and debug anthing that needs fixing.

We're using one of our linus boxes as an NFS server with absolutely no issues. We're using SuSE linux (again... decided by France due to SAP support) I'd rather be using Red Hat. The administrative tools are another thing you'll have to get people used to. no SAM in Linux.... SuSE has yast and yast2. RedHat has it's own admin tools as well.

In the future we're looking at getting another 40 Linux servers in the next few years.

All paths lead to destiny
Christoph Rothe_3
Frequent Advisor

Re: Linux and HP-UX

...but of course you can also install a ksh, csh or whatever and porting your script might be easier.

John Meissner
Esteemed Contributor

Re: Linux and HP-UX

good point Christoph. I am glad you used the term "easier" though. We also installed ksh but some of the things are slightly different I've noticed. But very good suggestion none the less.
All paths lead to destiny
John Collier
Esteemed Contributor

Re: Linux and HP-UX

Not to try and ???hijack??? the thread, but where would be a good place for someone to acquire something such as ???ksh??? for Linux?

I never thought about doing that before, but I believe that just may be what I need to make my jump into the Linux world just a little less painful???
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855
Dan Beeler_1
Occasional Visitor

Re: Linux and HP-UX

Check out:

It is a collect of RPMs and where to locate them.

Good Luck,


Package Summary Distribution Download
pdksh-5.2.14-8.ppc.html A public domain clone of the Korn shell (ksh). Yellow Dog PPC pdksh-5.2.14-8.ppc.rpm
Esteemed Contributor

Re: Linux and HP-UX


I work in this kind of configuration,
Linux and HPUX on one network.
I use nfs between them and also NIS.
Every thing work fine.