我想通过 Ubuntu Linux Bash 远程运行一个任务(这需要很长时间)nohup并重定向stdout到一个文件,例如:
nohup
stdout
nohup task > out.txt &
有时我想通过查看输出文件来检查任务的进度:
cat out.txt
我还没有弄清楚如何做到这一点,因为只要文件被 Bash 打开以进行写入,文件的内容就会显示为空。
所以我的问题是:是否有任何允许“共享”stdout重定向的linux 命令?
shell bash io-redirection files stdout
bash ×1
files ×1
io-redirection ×1
shell ×1
stdout ×1