Using aliases with nohup

后端 未结 4 1592

Why doesn\'t the following work?

$ alias sayHello=\'/bin/echo \"Hello world!\"\'
$ sayHello 
    Hello world!
$ nohup sayHello
    nohup: appending output to `n         


        
4条回答
  •  庸人自扰
    2021-02-19 12:23

    For bash: Try doing nohup 'your_alias'. It works for me. I don't know why back quote is not shown. Put your alias within back quotes.

提交回复
热议问题