in reply to Reading programs output into a Scalar - How?

I can't use IPC::Open2 or IPC::Open3 either

I don't know exactly what you are trying to do, but the fact that IPC::Open3 won't work, raises a flag that the program in question, may be one of those finicky one which only write to the terminal, so you now are trying to capture STDOUT. You can sometimes get around this, by running bash thru IPC and collecting it's output. Here is a simple example, you can use a more complex system for writing and reading the input output.

#!/usr/bin/perl use warnings; use strict; use IPC::Open3; $|=1; #my $pid=open3(\*IN,\*OUT,\*ERR,'/bin/bash'); my $pid=open3(\*IN,\*OUT,0,'/bin/bash'); # set \*ERR to 0 to send STDERR to STDOUT my $cmd = 'date'; #send cmd to bash print IN "$cmd\n"; #getresult my $result = <OUT>; print $result;

I'm not really a human, but I play one on earth. Cogito ergo sum a bum