in reply to Re^5: Capture::Tiny alternative
in thread Capture::Tiny alternative
my $cmd = `/usr/sbin/sshuttle ...` Instead of this: my $cmd = '/usr/sbin/sshuttle ...'
I don't think that'll help, as the OP said they want to stream the output of the command, while backticks wait until the external command has completed.
I suspect there's something going on in the IPC interaction between sshuttle and perl calling it (maybe sshuttle isn't daemonizing properly when called from Perl or something), at the moment I don't know more.
melezhik: Just a guess, try my $cmd = 'nohup /usr/sbin/sshuttle ...' although that may prevent you from capturing its output, not sure if that's what you want or not. But since you're asking sshuttle to damonize (-D) anyways...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Capture::Tiny alternative
by melezhik (Monk) on Mar 24, 2017 at 15:29 UTC |