Functionality difference between HP-UX Release 10.20 and 11.00

Thread Tools Search this Thread
Operating Systems HP-UX Functionality difference between HP-UX Release 10.20 and 11.00
# 1  
Old 07-25-2004
Question Functionality difference between HP-UX Release 10.20 and 11.00

Hi All,

What is the difference with respect to functionality point of view, between HP-UX Release 10.20 and HP-UX Release 11.00?
Does the if condition statement in the shell script behave differently in these two releases?
# 2  
Old 07-25-2004
See Release Notes for HP-UX 11.0.

I'm not sure what you're asking with the second question. There are differences between the releases and they can be detected via a shell script.
# 3  
Old 07-25-2004
HI All,

Thanks for the response.

The problem is something like this.

I had coded in HP-UX Release 11.00. The code contained some checks in the form of IF clauses eg..
IF [ "$var1" -eq "200" ] ; then
echo "just an example"

The first field of a file nohup.out (FTP log) was being fetched (by cutting) into a variable "var1". I guess that was making it a string datatype instead of numerical.

The comparison in the IF statement as you can see above is for numerical type.

When tested on Release 11.00 it worked fine but on testing on Release 10.20 it threw the following error :
"cust_runer[194]: 221-Total: The specified number is not valid for this command."

The following error disappeared when i changed the comparison symbol from "-eq" to "=".

So my query is why such difference in behaviour, there has to some explanation to it.

I hope I have been elaborate in my explanation of the problem.

Please help me in finding an explanation.

# 4  
Old 07-26-2004
Put in a line like:
echo var1 = $var1

in front of the if statement. You're getting a different value in var1.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP and SFTP functionality

Hi Friends, I need to make a Unix script, where i need ftp and sftp functionality. Let me describe in details: I need to import few files from remote server, now these remote server either support ftp or sftp not both. So i need a script where my script will try to do ftp first and if it... (8 Replies)
Discussion started by: gnnsprapa
8 Replies

2. Shell Programming and Scripting

Script lock functionality

Hi All, My requirement is i have a script .When a person A runs the script it should get locked and person B should not run the script. i followed the below code f_script_lock() { process=$1 user=`ps -ef | grep -i "$process" | grep -i 'ksh' | awk '{print $1;}'` if ; then ... (1 Reply)
Discussion started by: mohanalakshmi
1 Replies

3. UNIX for Dummies Questions & Answers

Zip -r Functionality

Hi , I've written the following code to zip the big file $dir_temp ="/home/etc/hst zip -r $dir_temp/ $dir_temp/file_nm The zip file has been created . When I try to UNZIP the file with the following command unzip The file got unzipped but created in the... (3 Replies)
Discussion started by: smile689
3 Replies

4. UNIX for Dummies Questions & Answers

Command Functionality

Hi everyone, today i need that someone help to understand this particular line of command. So you can explain to me step by step, it will be great. ---------- Post updated at 11:53 AM ---------- Previous update was at 11:51 AM ---------- (9 Replies)
Discussion started by: Newer
9 Replies

5. Shell Programming and Scripting

Pipe Functionality

Hi, I am trying to emulate the '|' functionality through pipe function call. I am passing the o/p of exec in parent as input to the exec in child. The buf is readin the o/p but the exec in child is not working. Can somebody checkout the code and point where am i going wrong or missing something.... (3 Replies)
Discussion started by: amejoish
3 Replies

6. UNIX for Dummies Questions & Answers

using functionality in another ksh

i have a function defined in one ksh i want to use the same functionality in another ksh i am using . ../<ksh name> but it is not picking that functionality what i have to do for the same (2 Replies)
Discussion started by: trichyselva
2 Replies

7. Shell Programming and Scripting

Restartibility Functionality....

Hello, I am trying to write a script that has a option of restarting the script from where it failed. I have to write a script called This script has to run quite a few sql files as shown below: -f test1.sql -f test2.sql -f test3.sql -f... (4 Replies)
Discussion started by: rkumar28
4 Replies

8. Shell Programming and Scripting

Sed functionality

I have a few xml files and I want to input say 5 parameters within each file. is it possible to do so with sed? <parameter>A</parameter> <parameter>B</parameter> .... .... And so on. These parameters are meant to go in just inside: <?xml... (2 Replies)
Discussion started by: collern2
2 Replies

9. UNIX for Dummies Questions & Answers

Date functionality

Hi, Could someone help me to get yesterday's date in MMDDYY format. echo `date '+%m%d%y'` is giving me today's date in the above format. Thanks in advance for your help.. Suresh. (1 Reply)
Discussion started by: svannala1
1 Replies

10. UNIX for Dummies Questions & Answers

difference between SunOS Release and Solaris Release

Whats the difference between Solaris Relase and SunOS Release?? (1 Reply)
Discussion started by: eloquent99
1 Replies
Login or Register to Ask a Question

Featured Tech Videos