1

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.

noober
  • 111
  • 1
  • 2

1 Answers1

1

try nohup bash -c "./myscript.sh 11111" > nohup.out

Maxiko
  • 474
  • 2
  • 8
  • How does it go into the background? I'm prompted for my password which is fine, but the session is still attached. How do I get it to release back into the shell? thx – noober May 08 '15 at 13:15