Operating System - HP-UX
1845746 Members
3936 Online
110249 Solutions
New Discussion

Re: HP-UX to Linux Red Hat

 
SOLVED
Go to solution
Enrico Venturi
Super Advisor

HP-UX to Linux Red Hat

Hello colleagues,
we should port an application from HP-UX to Linux Red Hat.
The application is composed of:
* C/C++ code, compiled through the default C compiler
* Korn Shell scripts (a lot of them)
* PERL scripts
* TCL/TK scripts

Which are the main difficulties we could meet?
Are there any documents helping us in the migration job?

Regards
Enrico
6 REPLIES 6
Chan 007
Honored Contributor

Re: HP-UX to Linux Red Hat

Hi,

ksh will not a problem, it will work with out any problem.

For C you have to compile once again.

I am not sure about perl and not seen the last one...

Things to remember,

Ensure that you don't have any hardcoing like, OS name, ID, IP, Hostname etc.


007
RAC_1
Honored Contributor

Re: HP-UX to Linux Red Hat

I think you should not have problems except for c codes. But even for that gcc should take care of it. The korn shell location on linux should be same waht you might have put in shell scripts. A soft links in this case would help if you do not want to modify anything.

There should not be issues with perl and tcl/tk.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: HP-UX to Linux Red Hat

Hi Enrico,

From my porting experience, there won't be any issues with Perl and TCL/TK Scripts. In C/C++, you may need to locate correct headers in Linux and may require some minor changes in source code. Just try to compile with GCC and let us know the results, so that we can help you further from ITRC.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor
Solution

Re: HP-UX to Linux Red Hat

Steven E. Protter
Exalted Contributor

Re: HP-UX to Linux Red Hat

Shalom Venturi,

With the right compiler, most of your code should port without too much difficulty. You'll probably have to adjust some code and header files to Linux.

I've run thousands of shell scripts back and forth between the platforms and run into very few problems. Usually those problems are small, like a different set of options on the ping command and such.

Some resources:

http://devresource.hp.com/drc/resources/LPK/index.jsp

Interesting paper on IBM
http://www.ibm.com/servers/enable/linux/pdfs/unix2linux.pdf

tools:
http://searchopensource.techtarget.com/featuredTopic/0,290042,sid39_gci1044568,00.html
http://developer.novell.com/wiki/index.php/Porting_and_Migration_Tools

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
Howard Marshall
Regular Advisor

Re: HP-UX to Linux Red Hat

The only things I can think of that you are likely to have problems with

Which C compiler are you using on HP-UX, you will probably be using the gnu compiler on linux so you will probably have a few compiler issues from library names and differences in function call formats and names.

The perl and tcl should convert quite nicely unless you have calls to OS programs then you may have the same issues as with the ksh scripts

The korn shell stuff will mostly port with no problem. The exceptions will be any reference to hardware. Linux (or any other unix) doesn't use the same names for all the hardware. The lvol names or tape drive name or in some cases even the tty names could be different so they will have to be updated.

No port across platform is really easy but from one unix to another is usually less an issue than something like mac to windows is.

Oh yea, there will be several things you didn't think would be a problem. There always are.

H