Sample Header Ad - 728x90

Detach a process from Sh (not Bash) or “disown” for Sh (not Bash)

15 votes
1 answer
14628 views
Consider a shell script executed by Sh, not Bash (and I can't change it, and can't use a shebang, it's ignored). The & operator works, but disown $! does not and makes Sh complains “*disown: not found*”. How do I detach a background process from specifically Sh? I mean, doing from Sh the same as disown do from Bash.
Asked by Hibou57 (955 rep)
Jul 31, 2014, 08:14 PM
Last activity: Nov 25, 2020, 06:31 AM