intercept stdout/stderr of another process or disowned process
The command is definately going to save your day if you have disowned the process by mistake. Only uses strace so might as well work on Solaris also, though not tried it.
intercept stdout/stderr of another process or disowned process
1
|
Useful to recover a output(stdout and stderr) “disown”ed or “nohup“ep process of other instance of ssh.
With the others options the stdout / stderr is intercepted, but only the first n chars.
This way we can recover ALL text of stdout or stderr
* View this command to comment, vote or add to favourites * View all commands by glaudiston
commandlinefu.com
by David Winterbottom (codeinthehole.com)
URL: http://feedproxy.google.com/~r/Command-line-fu/~3/1SBr9I6EHUM/intercept-stdoutstderr-of-another-process-or-disowned-process
Related articles
- Capturing system command output as a string – Stack Overflow (stackoverflow.com)
- GNU Parallel – build and execute command lines from standard input in parallel (savannah.gnu.org)
- Ascii histograms and more cool data analysis tools in Python (jehiah.cz)
- Linux: Understanding File Descriptors and IO Redirection (symkat.com)
- Python `select` module – well explained step by step (doughellmann.com)
Related Articles:
- 2010/08/13 tee to a file descriptor
- 2010/11/20 Broadcast your shell thru port 5000
- 2010/11/09 Print all environment variables, including hidden ones
- 2010/09/24 bash script to run a command and take screenshot in every loop.
- 2010/09/01 Use the last command\’s output as input to a command without piping and bind to it to a key sequence in bash.
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.