nohup as background task does NOT return prompt
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to run a long running task in the background without having to be logged in and have the terminal return a prompt, but when I do this, the task appears to go into the background, but my prompt does not become available unless I hit control + c. I want to run the task and then get my prompt back. [ staging@php - pos - web ~] $ nohup php test . php > test . txt & [ 1 ] 27251 [ staging@php - pos - web ~] $ nohup : ignoring input and redirecting stderr to stdout 回答1: You should have your prompt available because your