The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-24-2004
puspendu's Avatar
Registered User
 

Join Date: Jul 2004
Location: INDIA
Posts: 18
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?
Reply With Quote
Forum Sponsor
  #2  
Old 07-25-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,650
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.
Reply With Quote
  #3  
Old 07-25-2004
puspendu's Avatar
Registered User
 

Join Date: Jul 2004
Location: INDIA
Posts: 18
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.
Reply With Quote
  #4  
Old 07-26-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,650
Put in a line like:
echo var1 = $var1

in front of the if statement. You're getting a different value in var1.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0