LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2011, 06:28 AM   #1
smk.muthu
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
Migration of script from Aix to Linux


Hi

We have a plan to migrate our unix shell scripts from AIX to linux.

I am trying to find if there is any impact in script level and explore more on migration impact .

You suggestions are highly appreciated.

Thanks
Muthu
 
Old 08-31-2011, 08:01 AM   #2
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 201

Rep: Reputation: 36
It all depends on the shell you are using in AIX, in our machines we have ksh, Linux usually comes with bash, so either you check both shells and their differencies or you install ksh (or whatever shell you are using in AIX) in your Linux box and don't have to touch anything.

Last edited by rodrifra; 08-31-2011 at 08:03 AM.
 
Old 08-31-2011, 08:24 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

You should also be aware that not all commands available on AIX are present on Linux (and vice versa). This does depend on what your scripts do.

Maybe this site will be of help to find equivalent Linux commands: A Sysadmin's Unixersal Translator (ROSETTA STONE)

Hope this helps.
 
Old 08-31-2011, 07:15 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
A handy link; bookmarked

@OP: both above are correct; ksh is avail on Linux (but may not be identical); cmds WILL vary as per Rosetta Stone (or more).

You'll want this http://linux.die.net/man/ and also www.linuxtopia.org - a lot(!) of free to read manuals/books/HOWTOS.

If you decide to port to bash instead of ksh, try these
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/

Given that bash is the default on Linux, it may be worth the effort, as when you ask a qn, people tend to assume bash unless you specify otherwise ...
IME, for internal cmds its easy to sw to bash; its probably based on ksh originally... for external cmds see above.


Good Luck & Welcome to LQ

Last edited by chrism01; 08-31-2011 at 07:23 PM.
 
  


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
Step by Step Migration Process of AIX to RedHat & Hp-UX to RedHat austinbravo Linux - Newbie 5 06-07-2010 05:26 PM
OpenLDAP Migration Script Problem cf3232 Linux - Server 1 03-28-2010 01:07 PM
AIX script mani_um AIX 9 04-13-2007 09:45 AM
RH -> Debian migration breaks CGI script under Apache miggins Debian 1 09-02-2005 02:42 AM
AIX to Linux Migration damine Red Hat 0 01-06-2005 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration