on-the-fly output redirection, seeing the file redirection output while the program is still running

前端 未结 6 837
孤街浪徒
孤街浪徒 2021-02-08 01:36

If I use a command like this one:
./program >> a.txt &
, and the program is a long running one then I can only see the output once the program ended. That means I ha

6条回答
  •  时光说笑
    2021-02-08 02:04

    If the program writes to a file, you can read it while it is being written using tail -f a.txt.

提交回复
热议问题