(1) We use a example "ping" in the background, and the command (Using "nohup") is below,

# nohup ping www.google.com &

or

# nohup ping www.google.com >> output.log &

(2) In the future, you can kill the process by some commands below,

Find the PID,
# ps -aux | grep "ping www.google.com"
-------------------------------------
root     18238  0.0  0.2 120700  1060 pts/0    S    16:01   0:00 ping www.google.com
root     18240  0.0  0.1 112660   952 pts/0    S+   16:01   0:00 grep --color=auto ping www.google.com
-------------------------------------

Kill the process,
# kill -9 18238

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()