Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tail -f /proc/(pid)/fd/1
- import time
- while True:
- print 'test'
- time.sleep(1)
- python test.py
- ps auxw | grep test.py
- gdb -p (pid)
- (gdb) call creat("/tmp/stdout", 0600)
- $1 = 3
- (gdb) call dup2(3, 1)
- $2 = 1
- -e write=set
- Perform a full hexadecimal and ASCII dump of all the
- data written to file descriptors listed in the spec-
- ified set. For example, to see all output activity
- on file descriptors 3 and 5 use -e write=3,5. Note
- that this is independent from the normal tracing of
- the write(2) system call which is controlled by the
- option -e trace=write.
Add Comment
Please, Sign In to add comment