- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: monitor a launched process and get it exit sta...
Operating System - Linux
1754355
Members
4748
Online
108813
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
тАО08-31-2006 10:59 PM
тАО08-31-2006 10:59 PM
Hello,
i'd want to monitor a process but i don't know how.
i have thought to that:
$PROCESS >/dev/null 2>&1 & ; echo $$>/tmp.$PROCESS.pid
but in this case, i have not the exit status of $PROCESS.
someone can help me ?
thanks in advance.
i'd want to monitor a process but i don't know how.
i have thought to that:
$PROCESS >/dev/null 2>&1 & ; echo $$>/tmp.$PROCESS.pid
but in this case, i have not the exit status of $PROCESS.
someone can help me ?
thanks in advance.
Solved! Go to Solution.
- Tags:
- background
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 11:12 PM
тАО08-31-2006 11:12 PM
Solution
Hi,
the way I see it you have two options:
1. use wait See http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1046051
2. change your code to move your $PROCESS into another script and then call the script with &
e.g.
.
.
.
a.sh &
.
.
where a.sh is:
$PROCESS > /dev/null 2>&1
echo $!
Also: your profiles shows 1 point allocation for 9 answers !
the way I see it you have two options:
1. use wait
2. change your code to move your $PROCESS into another script and then call the script with &
e.g.
.
.
.
a.sh &
.
.
where a.sh is:
$PROCESS > /dev/null 2>&1
echo $!
Also: your profiles shows 1 point allocation for 9 answers !
- Tags:
- exit status
- wait
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 11:51 PM
тАО08-31-2006 11:51 PM
Re: monitor a launched process and get it exit status
many thanks Peter Godron,
you have gived me the good answers.
PS: i have corrected the missed allocation points ;)
Cheers,
Cedrick Gaillard
you have gived me the good answers.
PS: i have corrected the missed allocation points ;)
Cheers,
Cedrick Gaillard
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