spencerqiu
V2EX  ›  问与答

使用 nohup 命令,提示 nohup: ignoring input and appending output to `nohup.out' 但是就停在那儿了,没有返回 root@machinename:~$ 算是成功了么?

  •  2
     
  •   spencerqiu · Feb 24, 2015 · 45778 views
    This topic created in 4123 days ago, the information mentioned may be changed or developed.
    5 replies    2015-02-24 19:58:25 +08:00
    mhycy
        1
    mhycy  
       Feb 24, 2015 via Android
    目测你缺了个&
    spencerqiu
        2
    spencerqiu  
    OP
       Feb 24, 2015 via iPad
    @mhycy
    执行的命令是 nohup /var/net_speeder eth0 "ip";echo "nohup /var/net_speeder eth0 "ip" >/dev/null 2>&1 &" >> /etc/rc.local 。
    mhycy
        3
    mhycy  
       Feb 24, 2015 via Android
    看起来有语法错误,双引号没转义
    invite
        4
    invite  
       Feb 24, 2015
    执行两次算啥意思?
    msg7086
        5
    msg7086  
       Feb 24, 2015
    nohup /var/net_speeder eth0 →"ip"这里去掉并换成IP地址← →这里少加了个&← ;echo "nohup /var/net_speeder eth0 →"ip"这里去掉并换成IP地址← >/dev/null 2>&1 &" >> /etc/rc.local
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   930 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 19:44 · PVG 03:44 · LAX 12:44 · JFK 15:44
    ♥ Do have faith in what you're doing.