- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: make_net_recovery returning odd value when run...
Operating System - HP-UX
1753663
Members
5834
Online
108798
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2009 02:57 PM
тАО07-22-2009 02:57 PM
make_net_recovery returning odd value when run via perl's $?
My apologies in advance if this falls more into the realm of a Perl question than an ignite inquiry.
On my HP-UX 11i v2 system make_net_recovery is run via this Perl snippet:
open(MNR,"/usr/bin/time $mnrCommand 2>&1 > $mnrLog |");
($mnrCommand is a string containing the make_net_recovery commands.)
For some reason the return value as Perl sees (via Perl's $?) it is 512, when it should be 2 (completed with warnings).
I am assuming that 512 is 2 when bit shifted 8, but don't know what would be causing this behavior. When the command is run via the shell ECHO $? results in the expect 2.
Could anyone point me in the right direction for figuring out the cause of this behavior?
Also, could anyone let me know if my logic is sound as to the bit shifting?
Thanks in advance, I know this is a nebulous question.
James.
On my HP-UX 11i v2 system make_net_recovery is run via this Perl snippet:
open(MNR,"/usr/bin/time $mnrCommand 2>&1 > $mnrLog |");
($mnrCommand is a string containing the make_net_recovery commands.)
For some reason the return value as Perl sees (via Perl's $?) it is 512, when it should be 2 (completed with warnings).
I am assuming that 512 is 2 when bit shifted 8, but don't know what would be causing this behavior. When the command is run via the shell ECHO $? results in the expect 2.
Could anyone point me in the right direction for figuring out the cause of this behavior?
Also, could anyone let me know if my logic is sound as to the bit shifting?
Thanks in advance, I know this is a nebulous question.
James.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2009 03:48 PM
тАО07-22-2009 03:48 PM
Re: make_net_recovery returning odd value when run via perl's $?
Found the answer myself in this post:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1248306348757+28353475&threadId=4895
As an aside I'm absolutely amazed at the wealth of information here. HP should really start using these forums as a selling point.
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1248306348757+28353475&threadId=4895
As an aside I'm absolutely amazed at the wealth of information here. HP should really start using these forums as a selling point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2009 03:49 PM
тАО07-22-2009 03:49 PM
Re: make_net_recovery returning odd value when run via perl's $?
The post linked to above answered my question.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP