Skip to main content
20 events
when toggle format what by license comment
May 8, 2024 at 8:04 review Suggested edits
Jun 13, 2024 at 9:33
Jan 11, 2023 at 13:30 history edited tvlooy CC BY-SA 4.0
added 73 characters in body
Mar 30, 2021 at 19:12 comment added xealits somehow, neither of tail cat more works for me, but strace -ewrite does. I need stdout of a thread, strace -ewrite -p 50287 shows it: [pid 50287] write(1, "...", 97) = 97 - it does write to the 1 file descriptor. I see the output on the gnome terminal, but the utilities do not get it.
Jan 28, 2020 at 13:40 review Suggested edits
Jan 28, 2020 at 15:35
Feb 11, 2019 at 8:39 comment added jmhostalet tail doesn't work for me, I am using sudo cat /proc/<pid>/fd/1 instead
Jan 19, 2019 at 2:15 review Suggested edits
Jan 19, 2019 at 9:10
Mar 2, 2018 at 11:11 comment added tvlooy workaround for tail -f of pts device: gdb -p <pid>, p dup2(open("/dev/pts/<number>", 1), 1), detach
Mar 2, 2018 at 11:09 comment added tvlooy you are right. Because fd 1 and 2 are symlinks to the /dev/pts device. You can't tail -f a pts device. Schedule your ping command as a cronjob and then do the same. tail -f will then work
Mar 2, 2018 at 8:57 comment added david.perez Tested on Ubuntu 16.04 and it doesn't work. In a session I do: ping google.es and in another one as root: tail -f /proc/`pgrep ping`/fd/2 and nothing is shown.
Feb 5, 2018 at 15:33 comment added tvlooy are you sure it is the same process? Because if it exec's a wget or whatever then it's is a different process so another <pid>/fd/1
Feb 4, 2018 at 19:06 comment added mohitmun @mattdm facing same issue. is there any way to get stdout in that case?
Oct 5, 2017 at 4:41 comment added Ranvir The output of yum is not loading, coz it is downloading some file from a repo and the progress is not showing under the file 1
Apr 26, 2017 at 18:19 comment added mattdm This won't work if the output is going to a tty (or redirected to /dev/null) — it will only work if the output is redirected to a file.
Nov 8, 2016 at 14:10 comment added tvlooy yeah <my pid> should be your process id
Oct 27, 2016 at 13:36 comment added Yaroslav Nikitenko It gives me: 'cannot open /proc/<my pid>/fd/1 for reading: No such device or address'.
S Sep 8, 2016 at 15:03 history suggested user147505 CC BY-SA 3.0
readability
Sep 8, 2016 at 14:58 review Suggested edits
S Sep 8, 2016 at 15:03
Sep 8, 2016 at 14:39 review Low quality posts
Sep 8, 2016 at 14:51
Sep 8, 2016 at 14:24 review First posts
Sep 8, 2016 at 14:58
Sep 8, 2016 at 14:19 history answered tvlooy CC BY-SA 3.0