LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-25-2009, 08:12 AM   #1
soupbone38
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
Solaris to Linux Migration?


Does anyone know of any migration tool or script that will assist me converting perl and korn shell scripts built on Solaris to Linux (Redhat)? Something that identifies path. binary or syntax issues?
 
Old 02-26-2009, 05:52 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Not off the top of my head. However, if your interest is really in paths it might be more to the point to simply insure the environments have the correct PATH variables set.

Also a few wrinkles:
Solaris has both Berkley (ucb) and System V versions of many commands. You'd need to know which you were using as the former weren't typically Posix compliant.

There are differences between the flags allowed on many commands. Typically the Linux versions have more functionality. Often enough the flag you use on Solaris may not exist on Linux or may have a completely different purpose.

Linux doesn't use ksh by default - the preferred shell is bash which is "Borne Again Shell". Many Korn Shell scripts will run in this but you have to change the interpreter line.
There is ksh available for RedHat. For RHEL3 and RHEL4 it is the pdksh package which provides ksh but that is not Posix compliant. For RHEL5 there is a Posix compliant ksh available. You'll have to remember to load it.

There are differences between those two ksh versions. Just recently I had to change the way I was escaping things in a script I'd originally written on RHEL3 and used on RHEL4 when I had to port it to RHEL5.
 
Old 02-28-2009, 03:51 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
This page although targeting the opposite move might help: http://wikis.sun.com/display/Solaris...nux+to+Solaris
 
  


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
Alternative to Solaris RPC and Solaris DOORS in Linux lali.p Programming 2 09-16-2008 04:34 AM
Mysql 4-5 migration as well as character set migration from latin1 to utf8? helptonewbie Linux - Server 3 05-15-2008 05:15 AM
Help needed for Migration from Sun solaris to RHEL. newbiebd Linux - Server 5 02-29-2008 11:56 PM
Problem for OS Migration from Sun Solaris to Linux unixbd Linux - Server 2 09-07-2007 08:37 AM
need to partner with someone on large migration project. Solaris to Linux. dswain Linux - Software 2 01-24-2006 06:01 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:30 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