Migrating AIX Unix commands/scripts to Redhat Linux
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have never gone from AIX to Linux, but I have gone from Solaris to Linux as well as BSD to Linux.
The main thing would be what you mentioned: the shell the scripts are using. Obviously different shells are going to treat things a lot differently; trying to assign a variable like tcsh does, in BASH, is not going to really work well for you. So I would definitely invoke the same (or most similar) shell as possible, when possible.
Another thing that always gets me when porting scripts are the command's flags. I would double check each command that you use with its equivalent in the GNU or BSD version, and make sure -r (for example) really does exist and does the same thing as what it did on the AIX version.
And finally, the OUTPUT of a command could be surprising. If the AIX version spits one thing out, and your script parses based on that expectation (like by fields or bytes) then you might find yourself getting the wrong data because the Linux version returns info in a different format.
Oh and also syntax. Doesn't happen often, but for more complex things like sed vs gsed or gawk vs nawk or grep, it can sometimes be really severe.
So basically, everything. Check through it all, command by command.
We are in the process of migrating the Unix commands/scripts to the new Linux environment. As far as I know, there won't be any difference between the Unix and Linux environment except the shell name.
There are MANY differences, and AIX is not really Unix, except in name. There is much in common, but it's IBM's own brand, that ONLY runs on IBM equipment. Solaris is much closer to Linux, but there are going to be differences.
Please let me know, if there are any syntax/behaviour difference in Unix and in Linux. Any checklist for conversion of Unix to Linux.
There are lots, depending on the command(s) and how you call them. There is no 'checklist'. If you have scripts to migrate, copy them over one at a time, and RUN THEM. See where they fail, look at the lines/commands, then modify them one at a time until you get the desired results.