0

In my .bashrc:

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

From Terminal:

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

How can I run the bash function with nohup? Actually I want to run nohup keepassxc >/dev/null 2>&1 &

Porcupine
  • 1,680
  • 2
  • 19
  • 45
  • Duplicate (but without accepted answer) - [pass function to nohup to keep command running](https://unix.stackexchange.com/q/500408/100397) – roaima Sep 16 '22 at 16:52
  • Question is about the function, but if the function is the one given, it is actually about running KeePassXC, a program, without a controlling terminal. The function is unnecessary in this case. – Vilinkameni Sep 16 '22 at 23:25

0 Answers0