![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| using functionality in another ksh | trichyselva | UNIX for Dummies Questions & Answers | 2 | 01-14-2008 01:25 AM |
| Restartibility Functionality.... | rkumar28 | Shell Programming and Scripting | 4 | 04-28-2006 07:30 AM |
| Sed functionality | collern2 | Shell Programming and Scripting | 2 | 02-25-2006 09:55 PM |
| Date functionality | svannala1 | UNIX for Dummies Questions & Answers | 1 | 06-01-2004 01:22 PM |
| difference between SunOS Release and Solaris Release | eloquent99 | UNIX for Dummies Questions & Answers | 1 | 02-28-2003 07:39 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
||||
|
||||
|
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" FI 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. Thanks. |
|
#4
|
||||
|
||||
|
Put in a line like:
echo var1 = $var1 in front of the if statement. You're getting a different value in var1. |
||||
| Google The UNIX and Linux Forums |