UNIX to Linux Migration


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting UNIX to Linux Migration
# 1  
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  
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  
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  
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  
It depends what these scripts do. Some AIX commands, mainly administration ones, have no Linux equivalent.
# 6  
You might find some useful tips in this thread:

AIX UNIX (kshell) to Linux Shell Script Migration.
# 7  
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 for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #892
Difficulty: Medium
sed scripts cannot have comments.
True or False?

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. Linux

AIX 6.1 to Linux 7.2 migration

Hi, recently we have migrated our current AIX server to Linux, we have lot of shell script, few of them are FTP scripts. we have copied the complete AIX file system to linux 7.2 as it is. could you please highlight what are the things we need to look into it . in AIX we are using .netrc to... (3 Replies)
Discussion started by: Riverstone
3 Replies

3. 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

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. 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

7. 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

8. 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

9. HP-UX

HP-UX to Redhat Linux Migration

Hi, We are planning to do migration from HP-UX to Redhat linux. We have 1300 makefiels. Is there any difference between HP-UX make and GNU make? Is there any tutorial on that? Regards hari_anj (0 Replies)
Discussion started by: hari_anj
0 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

Featured Tech Videos