LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2015, 09:50 AM   #1
bala_karur
LQ Newbie
 
Registered: Apr 2015
Posts: 1

Rep: Reputation: Disabled
porting shell script from solaris to RHEL 6.0


what are the things need to take care when porting shell script from solaris to RHEL 6.0
 
Old 04-28-2015, 11:42 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Not much, particularly if your existing shell program is KornShell (might need to install KornShell on RHEL though). Even at that, KornShell and BASH are pretty much compatible (BASH is, after all, a port of Bourne and Korn).

Copy it over, see if it runs all right (then fix whatever syntax fails). The only things that might be troublesome would be executing Solaris-specific utilities in your shell program (I can't think of what those are right now, sorry, it's been a while). Too, any mounts or unmounts of disks and devices will need editing.

A well-written shell program written in KornShell or Bourne or BASH on Solaris should run just fine on a Linux box (with the proviso about specific utilities and mounting file systems and devices). It shouldn't be too much of a hassle to port.

Hope this helps some.

[EDIT]
Forgot C-Shell. With that, well, might be an enormous pain in the hiney. Might "just work," might not. Best way to find out is the acid test: run it and see.
[/EDIT]

Last edited by tronayne; 04-28-2015 at 11:44 AM. Reason: Forgot about C-Shell
 
Old 04-28-2015, 02:36 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
redhat dose backport to old versions BUT!!!
RHEL 6.0
6.0 is 6 minor versions and 3+ years out of date

if you HAVE!!!! to run 6.0 and ONLY!!! 6.0
you must be paying redhat a ton of cash every year

you might want to use that very very expensive support to keep you locked as 6.0 and not the current 6.6

if using korn then not much of a change

as above

run tests there might be a few things here and there
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Converting scripts from Solaris korn shell to run on both Solaris and RHEL paulfoel Programming 2 07-19-2013 08:49 AM
Porting a shell script --- to (gulp) Windows Woodsman Linux - General 9 08-18-2011 04:55 PM
Porting ksh script from Solaris to Linux Gives unmatched if error markatharvestinfotec Programming 4 08-28-2008 01:51 PM
Shell Script Solaris metallica1973 Solaris / OpenSolaris 8 11-23-2007 05:33 AM
porting linux date script to Solaris svar Linux - Software 5 05-29-2004 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 PM.

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