- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: daemon process
Operating System - HP-UX
1752815
Members
6045
Online
108789
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
тАО04-08-2010 12:37 PM
тАО04-08-2010 12:37 PM
daemon process
Hello All,
I have a daemon process, which is aborting. It does not create core file. This process is not loggin much of the log process.
I want to debugg with out modifying source code.
Is there any way I can get the error message this daemon process thowing on STDERR.
I tried playing around with file descriptor but it did not work.
I redirect 1>& and 2>& and then start the process but nothing is logged into file.
I tried something like
3<>File # open a file with FD 3
3<&2 # assign STDERR to 3
3<&1 # assign STDIN to 3
but nothing is working out
Can somebody advise if it is possible to get error message from a daemon process.
Thanks,
Vineet.
I have a daemon process, which is aborting. It does not create core file. This process is not loggin much of the log process.
I want to debugg with out modifying source code.
Is there any way I can get the error message this daemon process thowing on STDERR.
I tried playing around with file descriptor but it did not work.
I redirect 1>&
I tried something like
3<>File # open a file with FD 3
3<&2 # assign STDERR to 3
3<&1 # assign STDIN to 3
but nothing is working out
Can somebody advise if it is possible to get error message from a daemon process.
Thanks,
Vineet.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2010 12:46 PM
тАО04-08-2010 12:46 PM
Re: daemon process
You should be doing the redirect on the command line that starts the process.
Something like:
# startprocess > /var/tmp/errorfile 2>&1
Something like:
# startprocess > /var/tmp/errorfile 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2010 11:18 PM
тАО04-08-2010 11:18 PM
Re: daemon process
Some demons go out of their way to close stdout and stderr and reopen /dev/null. Do you do that?
You might be able to do:
startprocess 3> /var/tmp/errorfile
Then attach with gdb before the error and:
p close(2)
p dup(3)
You might be able to do:
startprocess 3> /var/tmp/errorfile
Then attach with gdb before the error and:
p close(2)
p dup(3)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2010 05:14 AM
тАО04-09-2010 05:14 AM
Re: daemon process
Thank you,
Vineet.
Vineet.
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