Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • 15
    It gives me: 'cannot open /proc/<my pid>/fd/1 for reading: No such device or address'. Commented Oct 27, 2016 at 13:36
  • 35
    yeah <my pid> should be your process id Commented Nov 8, 2016 at 14:10
  • 75
    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. Commented Apr 26, 2017 at 18:19
  • 3
    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. Commented Mar 2, 2018 at 8:57
  • 18
    tail doesn't work for me, I am using sudo cat /proc/<pid>/fd/1 instead Commented Feb 11, 2019 at 8:39