nohup bash 函数

nohup bash 函数

在我的.bashrc

function keepassxc(){
    "/Applications/KeePassXC.app/Contents/MacOS/KeePassXC" "${@}"
}
export -f keepassxc

从航站楼出发:

$ nohup keepassxc
nohup: ignoring input and appending output to 'nohup.out'
nohup: failed to run command 'keepassxc': No such file or directory

如何使用 nohup 运行 bash 函数?其实我想跑nohup keepassxc >/dev/null 2>&1 &

相关内容