Thursday, 15 July 2010

shell - How to keep process backgrounded after script is done? -



shell - How to keep process backgrounded after script is done? -

i'm trying background process in zsh script:

lein servlet run &

but after script done jobs shows:

[4] + 98346 suspended (tty input) lein servlet run

if run lein servlet run & command line, works fine, , doesn't suspended.

after researching, learned (tty input) means process waiting terminal input, doesn't take input me (someone must've wrote hacky). solve problem, gave false input:

lein servlet run </dev/zero &

now works. :d

shell background-process zsh

No comments:

Post a Comment