Command script to be run in both AIX and LINUX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command script to be run in both AIX and LINUX
# 1  
Old 10-12-2011
Java Command script to be run in both AIX and LINUX

Hi,

Script :
Code:
#!/usr/bin/ksh
echo "\n\t\t\t\t Enter your Name : \c"
read name
 
##############################
I ran the script in LINUX 
 
Enter your Name : abcdefghijklmnopqrstuvwxyz

I ran the script in AIX
Code:
Enter your Name : opqrstuvwxyz <

I'm not able to see the complete input in AIX .

Please let me know what is the settings that needs to be changed to see the complete input in AIX as well.

Moderator's Comments:
Mod Comment Video tutorial on how to use code tags in The UNIX and Linux Forums.
# 2  
Old 10-12-2011
????
Code:
ian12:/home/vbe $ uname;oslevel
AIX
6.1.0.0
ian12:/home/vbe $ ./00

                                 Enter your Name : sadjfsaljkhlkjhaljshflajhfjshalfhsdjhfaljh
sadjfsaljkhlkjhaljshflajhfjshalfhsdjhfaljh
ian12:/home/vbe $ more 00
#!/usr/bin/ksh
echo "\n\t\t\t\t Enter your Name : \c"
read name
sleep 3
echo $name

# 3  
Old 10-12-2011
Maximize your terminal window and then execute.
Probably you want want to execute the command resize also!

--ahamed
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Application Script didn't run during AIX shutdown using RC directories

Hi, I am trying to bring down the application gracefully before bringing down AIX OS/LPAR using RC directories. Issue: Application script is not working properly during/before AIX OS/LPAR shutdown. looks like "rc.d" directories doesn't recognize Kill script. But Startup script (using... (0 Replies)
Discussion started by: System Admin 77
0 Replies

2. Shell Programming and Scripting

How to run simple single command on multiple Linux servers?

Hi All, How can i run a single command on multiple servers with or without giving credentials. I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server. I tried below code... (9 Replies)
Discussion started by: darling
9 Replies

3. Windows & DOS: Issues & Discussions

Run Linux command from windows

hi i downloaded nic demo application from nic.comuf.com. working fine ,but when i run batch script ,always display splash screen maybe 10 sec. how can i remove splash screen when run batch script.? thanks z (2 Replies)
Discussion started by: zoldkovacs
2 Replies

4. Homework & Coursework Questions

NDM command to run a Mainframe job from Linux

Hi Experts, I am trying to run a Mainframe Job from Linux using NDM process. I will be passing the contents of the Mainframe job as an parameter to the NDM script. This is working fine with FTP when i use the option filetype = jes, but in NDM i am not able to identify a similar option like... (2 Replies)
Discussion started by: arun1377
2 Replies

5. Shell Programming and Scripting

Script for telnet and run one command kill it and run another command using while loop

( sleep 3 echo ${LOGIN} sleep 2 echo ${PSWD} sleep 2 while read line do echo "$line" PID=$? sleep 2 kill -9 $PID done < temp sleep 5 echo "exit" ) | telnet ${HOST} while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies

6. AIX

AIX How to run a Shell Script by changing the User

Hi All, Currently our application is running on the server having AIX 5.3 OS. What we intend to do is to run a shell script owned by another user and needs to be run as that particular user. I was trying to create a shell script using the su command before running the actual script (which... (4 Replies)
Discussion started by: acoomer
4 Replies

7. AIX

How to run a script automatically when AIX version 7 server reboots?

Am new to AIX please help me. I have AIX7 server. When ever the system reboots my script need to run automatically. This will help me to start my application automatically after the server reboot. Thanks, Prince Wells (9 Replies)
Discussion started by: prince1987
9 Replies

8. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

9. Programming

How to Run a Linux Command and Redirect its output to a socket in C

I have a Linux socket server program. I need to run the commands sent by the client and return the output to client. Is there a quicker way? I tried with ptr=popen(command, "r"); and then fgets(buf, size,ptr); write buf to socket fgets hangs for me. Now, I would like to know if I can... (3 Replies)
Discussion started by: rajeshomallur
3 Replies

10. AIX

is it ok to run AIX mksysb script on vio servers?

Hi to all now we running mksysb to nim on aix servers. we are planning to take mksysb from vio servers. can we use the same script for vio servers. thanks (10 Replies)
Discussion started by: honeym210
10 Replies
Login or Register to Ask a Question