- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get the output of a process from PID
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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-2007 01:37 AM
тАО08-31-2007 01:37 AM
How to get the output of a process from PID
I have started a process by redirecting its output to /dev/null. Is there any way to get the output into a file without stopping the process ? From the PID can I get the output ?
Any help ?
Thanks in advance.
Regards
Dash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2007 01:41 AM
тАО08-31-2007 01:41 AM
Re: How to get the output of a process from PID
No.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2007 01:45 AM
тАО08-31-2007 01:45 AM
Re: How to get the output of a process from PID
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2007 01:47 AM
тАО08-31-2007 01:47 AM
Re: How to get the output of a process from PID
SO that is the ONLY solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2007 02:59 AM
тАО08-31-2007 02:59 AM
Re: How to get the output of a process from PID
Are you asking or making an observation? If your asking, that IS the ONLY solution.
You might consider awarding points to James and Pete, as the answer is correct, even if undesired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2007 06:12 AM
тАО08-31-2007 06:12 AM
Re: How to get the output of a process from PID
Dash
the output is going to /dev/null, so it is gone!
WK
please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2007 06:30 AM
тАО08-31-2007 06:30 AM
Re: How to get the output of a process from PID
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2007 03:24 PM
тАО08-31-2007 03:24 PM
Re: How to get the output of a process from PID
You do know that the data written is gone, but you may be able to "redirect" future output.
>Bill: To change this file means that the program must close and release the file, then open a new file and continue writing. In other words, not possible.
That's not quite true. If you can attach gdb to the process you could do a command line call to fopen a file and then dup2 the FD to stdout.
Of course I'm waving my hands here but that process was what we did for cfront.