Follow

nohup的使用

$ nohup my_command > my.log 2>&1 &
$ echo $! > save_pid.txt

· · Web · 1 · 0 · 0

@mashiro 我用的系统里头 nohup 是没用的😂 所以我用 tmux
$ tmux new -s <session-name>
ctrl+b d 分离会话
$ tmux attach -t <session-name>
列出会话是
$ tmux ls

Sign in to participate in the conversation
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。