In case of bash:
$ cmd &
In case of ssh (we want cmd to be executed after we input the password):
$ ssh -f user@host cmd
In case of sudo (we want cmd to be executed after we input the password):
$ sudo -b cmd
本文介绍了在bash、ssh和sudo环境下如何让命令在输入密码后继续执行的技巧,包括使用&符号在bash中后台运行命令,ssh和sudo结合-f参数预先加载会话以便于后续命令执行。
In case of bash:
$ cmd &
In case of ssh (we want cmd to be executed after we input the password):
$ ssh -f user@host cmd
In case of sudo (we want cmd to be executed after we input the password):
$ sudo -b cmd
转载于:https://www.cnblogs.com/unimous/archive/2013/01/18/2866052.html

被折叠的 条评论
为什么被折叠?