Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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.

Old 08-31-2011, 08:01 AM   #2
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

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
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400

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
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,848

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
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 and also - a lot(!) of free to read manuals/books/HOWTOS.

If you decide to port to bash instead of ksh, try these

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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration