UNIX to Linux Migration


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting UNIX to Linux Migration
# 1  
Old 04-21-2015
Wrench UNIX to Linux Migration

We have certain number of scripts that run on AIX server using ksh.
Now that we migrate these scripts to Linux servers.
We need to know what are the changes that we have to perform in script to make it compatible to run on Linux.

Say like in our Unix -AIX "print" command worked.
But that did not work on Linux,We had to replace it by "echo" command.

Likewise what other parameters i should look into the scripts to make it work on linux.
# 2  
Old 04-21-2015
Welcome to forums, if you can install ksh on your linux server, then there is no need to replace print with echo. please describe your problem.

Code:
$ ksh --version
  version         sh (AT&T Research) 93u+ 2012-08-01

$ ksh -c "print hello"
hello

This User Gave Thanks to Akshay Hegde For This Post:
# 3  
Old 04-21-2015
Quote:
Originally Posted by Akshay Hegde
Welcome to forums, if you can install ksh on your linux server, then there is no need to replace print with echo. please describe your problem.

Code:
$ ksh --version
  version         sh (AT&T Research) 93u+ 2012-08-01

$ ksh -c "print hello"
hello

What are the other parameters and variables that we have to look into the scripts.our scripts mostly will have if and case statements.
# 4  
Old 04-21-2015
Quote:
Originally Posted by SIva81
What are the other parameters and variables that we have to look into the scripts.our scripts mostly will have if and case statements.
The same script should work fine here on your linux server with ksh, can you tell us what your script does, or else show us your script or else install ksh on your linux server and run it, and come with errors if you receive.
# 5  
Old 04-21-2015
It depends what these scripts do. Some AIX commands, mainly administration ones, have no Linux equivalent.
# 6  
Old 04-21-2015
You might find some useful tips in this thread:

AIX UNIX (kshell) to Linux Shell Script Migration.
# 7  
Old 04-24-2015
The worst thing is that there is no mksysb

You might find this useful:- UNIXguide.net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)



Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need advice for project UNIX to Linux migration

I am working on UNIX AIX to Linux migration. Does anybody know the good site for doing this? Thanks for contribution (4 Replies)
Discussion started by: digioleg54
4 Replies

2. Shell Programming and Scripting

AIX UNIX (kshell) to Linux Shell Script Migration.

Hi, Could you please let me know what kind of changes/issues commonly occurs at Scripting /command level during AIX Unix (kshell) to Linux shell script migration. (24 Replies)
Discussion started by: Raghuraman.R
24 Replies

3. Linux

Migration from solaris to linux

Hi, Currently I can able to access php script from solaris. I want to access from Linux I have done the following things: 1) I have copied all the scripts from solaris to linux. 2) I have installed php,mysql,apache. I tried with http://Hostname/username/test.php . This is not working .... (6 Replies)
Discussion started by: Mani_apr08
6 Replies

4. Shell Programming and Scripting

Shell scripts migration from HP-Unix 11 to Red Hat Linux

We are changing our OS from HP-Unix 11 to Linux Red Hat. We have few k- shell, c - shell and sql scripts which are currently running under HP-Unix 11. Will these scripts work on LINUX as it is? or we need to do any code changes?IS there anyone who have done this kind of migration before?Thanks for... (2 Replies)
Discussion started by: Phoenix2
2 Replies

5. Red Hat

tool for migration from HP Tru64 UNIX to Linux Red Hat 5

Hi, We are going to migrate our Dataware House system from HP Tru64 UNIX to Red Hat Linux 5. There are more than 500 shell scripts which are written in ksh. The schedule is very tight. So, I want to learn whether there is a tool that can help us find the incompatible shell scripts in... (2 Replies)
Discussion started by: franksubramania
2 Replies

6. HP-UX

Migration from HP-UX to Solaris/Linux

Hi eveyone Ours is an application hosted on HP-UX 11 and we are trying to migrate the server to different flavour of UNIX. We are actually looking at the option of migrating it to Sun Solaris or Linux. We are trying to evaulate the pros and cons of migrating our application to Solaris/Linux.... (6 Replies)
Discussion started by: turaga.krishna
6 Replies

7. Shell Programming and Scripting

Regarding migration (from Tru64 Unix to Linux 3.0) of Files :- oraboot and orabackup

Hi, I have 2 Files - oraboot and orabackup, which are correct Files in Tru64 Environment and I am trying to check whether the Files are running properly in my current Linux 3.0. (basically trying to migrate them from Tru64 to Linux 3.0). The files are neither Shell nor Perl, and just have the... (1 Reply)
Discussion started by: marconi
1 Replies

8. Linux

I/ps pls for migration of oraboot & orabackup files from Tru64 Unix to Linux 3.0

Hi, I have 2 Files - oraboot and orabackup, which are correct Files in Tru64 Environment and I am trying to check whether the Files are running properly in my current Linux 3.0. (basically trying to migrate them from Tru64 to Linux 3.0). The files are neither Shell nor Perl, and just have the... (2 Replies)
Discussion started by: marconi
2 Replies

9. Shell Programming and Scripting

I/ps pls for migration of oraboot & orabackup files from Tru64 Unix to Linux 3.0

Hi, I have 2 Files - oraboot and orabackup, which are correct Files in Tru64 Environment and I am trying to check whether the Files are running properly in my current Linux 3.0. (basically trying to migrate them from Tru64 to Linux 3.0). The files are neither Shell nor Perl, and just have the... (1 Reply)
Discussion started by: marconi
1 Replies

10. Shell Programming and Scripting

SCO UNIX to Linux migration

hi all i m working in a company ...and i have to migrate a C application running on SCO-UNIX to Red hat linux. can anybody tell me what is the difference between C commands and shell scripting on SCO-UNIX and LINUX. best regards harsh (3 Replies)
Discussion started by: vickey
3 Replies
Login or Register to Ask a Question