I typically use nohup
like so:
nohup ./myscript.sh 11111 > nohup.out &
Where 11111 is an input parameter. In this case, the application is prompting for a password and I'm unable to use nohup.
How do I get around this if I'm prompted for a password? as well as passing an input parameter? I need the nohup.out for review.
Best Answer
try nohup bash -c "./myscript.sh 11111" > nohup.out