当我运行命令(例如apt-get update)时,我的服务器会自动将进程发送到后台(就像我在命令后面附加了&一样)。你们中有谁遇到过这个问题吗?我找遍了也找不到任何与此相关的东西。这是在Wheezy服务器上。
以下是自动发送到后台的命令输出示例:
debian-transmission@emachine-debian:~$ flexget --discover-now
2013-10-10 23:15 VERBOSE discover tv_shows Discovering 38 titles ...
2013-10-10 23:15 INFO discover tv_shows Ignoring interval because of --discover-now
2013-10-10 23:15 VERBOSE est_series tv_shows The X Factor (US) S03E11 does not exist in tvrage database, assuming unreleased
2013-10-10 23:15 INFO task tv_shows Plugin discover has requested task to be ran again after execution has completed.
2013-10-10 23:15 VERBOSE est_series tv_shows The Walking Dead S03E17 does not exist in tvrage database, assuming unreleased
2013-10-10 23:15 VERBOSE est_series tv_shows Supernatural S06E23 does not exist in tvrage database, assuming unreleased
2013-10-10 23:15 VERBOSE est_series tv_shows Falling Skies S03E11 does not exist in tvrage database, assuming unreleased
[1]+ Stopped flexget --discover-now发布于 2013-10-15 07:23:46
您的FlexGet和apt-get命令可能有别名,或者您的shell脚本可能会拦截它们。是否有其他命令在后台启动( ls、touch、mkdir等)?
which flexget,file file查看FlexGet (http://flexget.com/wiki/Plugins/exec),它建议使用Allow background选项,但表示您(可能)需要'start‘命令。
*通常,FlexGet会等待给定的命令完成,以便捕获返回状态并记录输出。但是如果运行该命令需要很长时间(例如,直接下载大文件),它将阻止进一步的处理,直到命令完成。要将命令派生到后台进程以便FlexGet继续处理而不会延迟,您不仅需要在命令末尾添加与号(&),还必须使用{{allow_background}}选项。请注意,此选项还将阻止FlexGet确定命令是否失败,因此不会重试。*
*如果您在执行任务时遇到问题,请尝试使用"start“命令。在上面的示例中,设置"allow_background: yes“并附加&仍然不会在后台处理该过程。*
https://stackoverflow.com/questions/19370102
复制相似问题