in reply to Interactive openssl raw
Hi Guntherssl,
From exec:
The exec function executes a system command and never returns; use system instead of exec if you want it to return.
If you Use strict and warnings, normally Perl warns you about this (although not in the code you showed, as you're not using exec in void context).
However, to communicate with a subprocess interactively, exec/system is not the right thing, the best way to go is use a module like IPC::Run or perhaps Expect.
Lastly, you don't necessarily need to shell out to openssl for this, I don't see how IO::Socket::SSL would prevent you from "watch each part manually and interact with it live".
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interactive openssl raw
by Guntherssl (Initiate) on Dec 06, 2016 at 12:10 UTC | |
by haukex (Archbishop) on Dec 06, 2016 at 13:14 UTC |