AIX to Linux


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting AIX to Linux
# 15  
Old 12-01-2010
Quote:
Originally Posted by tutkiran
Modified Script to

Code:
#!/bin/bash
echo HOSTNAME is $HOSTNAME
case $HOSTNAME
in
amx134)
wm_env="pd"
                            wbsrv_PRESENT=Y
                            wbsrv_PORT=1070
                             ;;
              amx135)
                            wm_env="pd"
                            wbsrv_PRESENT=Y
                            wbsrv_PORT=1070
                             ;;
esac

Placing the "in" on its own line is syntactically wrong, probably a typo:

Code:
#!/bin/bash
echo HOSTNAME is $HOSTNAME
case $HOSTNAME in
              amx134)
                            wm_env="pd"
                            wbsrv_PRESENT=Y
                            wbsrv_PORT=1070
                             ;;
              amx135)
                            wm_env="pd"
                            wbsrv_PRESENT=Y
                            wbsrv_PORT=1070
                             ;;
esac

should work.

I hope this helps.

bakunin
# 16  
Old 12-01-2010
Thanks for all valuable replies..Initial code itself worked After LINUX Admin rebooted the machine

Code:
#!/bin/bash

case "$HOST" in
             amx134)
                            wm_env="pd"
                            wbsrv_PRESENT=Y
                            wbsrv_PORT=1070
                             ;;
              amx135)
                            wm_env="pd"
                            wbsrv_PRESENT=Y
                            wbsrv_PORT=1070
                             ;;
esac

Moderator's Comments:
Mod Comment edit by bakunin: i have asked you to use CODE-tags. If you don't know how to use them you could have asked, you could have consulted the FAQ or you could even googled.

To just ignore the moderator is punishable by the law.

Last edited by bakunin; 12-01-2010 at 12:14 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

2. AIX

Linux software on AIX 5.3

Hi Team, On a client requirement, we need to install below Linux software on IBM AIX 5.3 operating system, Apache Maven 3.2.3 MySQL 5.1.73, Sonarqube 4.1.2, Apache Tomcat 7.0.42, Jenkins 1.549 Please tell us whether above tool versions are compatible to AIX 5.3 (4 Replies)
Discussion started by: dnr.simha23
4 Replies

3. AIX

backup linux like aix

Hello everyone I need to backup some boxes with redhat enterprise for power. I was looking for software but I need to umount filesystems,etc,etc. I need a software that backup like I do with my aix boxes. mksysb command and thatīs it. Because I need to do online, with no umount fs. ... (5 Replies)
Discussion started by: lo-lp-kl
5 Replies

4. UNIX for Dummies Questions & Answers

fuser on aix vs. linux

Pls. advise why on AIX the exit status is always '0' and on Linux it is always '1' even if the I just created a new file. I'm thinking if there is a background process monitoring the created 'file1' on AIX even if it is just a dummy or new file. How can I resolve this. (I need to justify that... (1 Reply)
Discussion started by: budz26
1 Replies

5. AIX

AIX IBM I and LINUX

As I know PowerVM supports these OS's AIX IBM I and LINUX but is there any blade or other hardware that allows us to use all these OS's (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies

6. Programming

Migration of C Apps from AIX to LINUX

Hi All, I am currently facing new problem of migrating C(c language) application from AIX machine to Linux machine. We are using GCC to compile the source code.. But facing with the compilation issues, with lot of GCC C libs differing between AIX box to Linux box... Pls help me... (1 Reply)
Discussion started by: karthikc
1 Replies

7. AIX

Aix 5.3 or Linux?

Hey I have an IBM IntelliStation Power 9114 Model 275 1.45GHz Workstation 1-Way 1.45GHz Power4+ Processor (5223) 2GB Memory (4x 512MB Dimms) (4447) and was told that AIX 5.3 works on it, and that there was problems with Linux installs. Can I download AIX 5.3 or do I need to buy... (13 Replies)
Discussion started by: newtoaix
13 Replies

8. Fedora

Installation Of Linux on an AIX server

Hi, Is it possible to install Linux on an AIX server? Is there any doc available with anyone for installation? Please help. (1 Reply)
Discussion started by: dwiravi
1 Replies

9. Shell Programming and Scripting

Different output in AIX and Linux OS

Hi All , Please help me in understanding why i am getting error for the below script in LINUX, but the same script will work perfectly in AIX unix. Script Name:try.ksh #!/bin/ksh echo "$0 \n" MYPWD=$(pwd $(dirname $0)) echo " $MYPWD \n" O/P in LINUX OS: ./try.ksh ./try.ksh:... (2 Replies)
Discussion started by: sudhir_barker
2 Replies

10. UNIX for Advanced & Expert Users

Find in HP,AIX vs Linux

Hi Guys, Wondering if anyone can help me. I have a find command on a Linux box that works as expected: find \( -not -type d -or -not -name log -and -not -name loc -and -not -name usr -and -not -name etc -and -not -name tmp -and -not -name wrk -and -not -name changes -or -prune \) -and -not... (6 Replies)
Discussion started by: bParks
6 Replies
Login or Register to Ask a Question