- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Background processes result code in HP-UX
Operating System - HP-UX
1757402
Members
3312
Online
108860
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
Go to solution
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-12-2009 11:00 PM
тАО07-12-2009 11:00 PM
Re: Background processes result code in HP-UX
Just to add to the confusion... a word of warning on using "wait " in scripts...
if the command you are intending to wait for *exits* before you call wait, you will *not* get the return code of the process... so for shortlived processes, I tend not to trust wait, and always put some sort of shell wrapper around any background process where I can collect status information (into a file for example)
HTH
Duncan
I am an HPE Employee
if the command you are intending to wait for *exits* before you call wait, you will *not* get the return code of the process... so for shortlived processes, I tend not to trust wait, and always put some sort of shell wrapper around any background process where I can collect status information (into a file for example)
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 02:00 AM
тАО07-13-2009 02:00 AM
Re: Background processes result code in HP-UX
Thank you all for the replys.
I will close this thread as it it clear now.
Best regards,
Horia Chirculescu
Vianet Serv SRL.
I will close this thread as it it clear now.
Best regards,
Horia Chirculescu
Vianet Serv SRL.
Best regards from Romania,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 02:00 AM
тАО07-13-2009 02:00 AM
Re: Background processes result code in HP-UX
Thread closed.
Best regards from Romania,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2010 12:15 PM
тАО01-01-2010 12:15 PM
Re: Background processes result code in HP-UX
>JRF: I have always found the shell's use of '-eq', '-lt' and '-gt' ..., to be counterintuitive.
If you are only doing numeric comparisons, then you can switch to C style:
if (( rc1 != 0 || rc2 != 0 || rc3 != 0 || rc4 != 0 || rc5 != 0 )); then
Or if you think these are boolean values:
if (( rc1 || rc2 || rc3 || rc4 || rc5 )); then
If you are only doing numeric comparisons, then you can switch to C style:
if (( rc1 != 0 || rc2 != 0 || rc3 != 0 || rc4 != 0 || rc5 != 0 )); then
Or if you think these are boolean values:
if (( rc1 || rc2 || rc3 || rc4 || rc5 )); then
- « Previous
-
- 1
- 2
- Next »
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