in reply to Re^7: Capture::Tiny alternative
in thread Capture::Tiny alternative
Simply try the same invocation sshuttle -D ... 2>&- | cat (with the redirect) and see how it behaves.
However, there seems to be a fundamental misconception about the workings of process environment. A shell command line does not contain or isolate the task. This is how a daemon can work in the first place: it detaches from shell and terminal and starts running on its own. You have indicated that the exit status of the command is of interest to you. But this may be largely irrelevant to the working of your service. The daemon will have forked at least once; the process writing to your pipe/stdout is the child not the $pid you forked.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Capture::Tiny alternative
by melezhik (Monk) on Mar 26, 2017 at 18:02 UTC | |
by Anonymous Monk on Mar 26, 2017 at 19:50 UTC | |
by melezhik (Monk) on Mar 26, 2017 at 20:05 UTC | |
by melezhik (Monk) on Mar 27, 2017 at 11:31 UTC |