Hi there,
I am having trouble making open3 work with perl, v5.6.1 built for
i386-linux.
I am running Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27.
My problem is that I can't write to STDIN. Does any one know of any
solution to this problem? Has any one encountered the same issue?
encountered the same issue?
Any suggestions and help is greatly appreciated.
It's a known problem. The solution: s/IPC::Open3/IPC::Run/
Barries has also written IPC::Run3, which should act as a drop-in replacement
for IPC::Open3, if you have to stick with the same API
Hello folks,
I am writing a web based interface to gpg and am using IPC::Open3 and
IO::Select to manage STDIN, STDOUT and STDERR handles. But, I can not
get stdin to work properly. Here is my code:
$gpgCommand = gpg --homedir $home --no-default-keyring
--secret-keyring rasoul.asc --decrypt
This is a known issue with latest mod_perl. Search the
archives for details.
This is the temp. solution. Before you call open3()
do:
untie(*STDIN);
untie(*STDOUT);
Sreeji
--- Rasoul Hajikhani [EMAIL PROTECTED] wrote:
Hello folks,
I am writing a web based interface to gpg and am
using IPC
by:
use IPC::Open2;
$pid = open2(\*A, \*B, '/usr/bin/ls');
The error log shows:
[error] Can't locate object method "FILENO" via package "Apache" at
/usr/local/lib/perl5/5.6.0/IPC/Open3.pm line 183.
does this fix it:
sub Apache::FILENO {
untie *STDOUT;
fileno STDOUT;
}
?
:
[error] Can't locate object method "FILENO" via package "Apache" at
/usr/local/lib/perl5/5.6.0/IPC/Open3.pm line 183.
I do not understand enough about the perl/mod-perl guts to produce a
patch. Any help appreciated.
Thanks,
Richard
--
Richard Titmuss
Sorry if this is slightly off topic.
I seem to have run into problems using IPC::Open3 under mod_perl 1.22 and perl
5.6.0. This probelm only seems to have cropped up after I upgraded form perl
5.005 to perl 5.6.0. What happens is I have an exception handler that opens
gpg and uses gpg