[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: stdout/console etc
> Hi there,
> I might be OffTopic, but:
> I would like to see what a running process writes to it
> current stdout.
> Is this possible ?
If it is possible to redirect stdout when you start the process
I think that would be the easiest way:
my_app > /tmp/my_app.out
my_app > /tmp/my_app.out 2>&1
if you want stderr as well.
tail can then follow the file while it is appended to:
tail -f /tmp/my_app.out