I am trying to call a function using nohup like this:
nohup
function1(){ while true do echo \"function1\" sleep 1 done }
Another solution:
function background { echo TEST } export -f background nohup bash -c background &