On Fri, Jun 16, 2000 at 02:12:48PM +0200, Gerald Richter wrote:
> >
> > Does the same concern opening pipes (i.e. commands, not named
> > pipes)  as files?
> >
> > open(FILE,"cat \</etc/passwd |")
> > while (\<FILE>) {
> >     print OUT $_;
> > }
> >
> > doesn't produce any output....
> >
> 
> Embperl makes no difference here, but you may check the return value from
> open and $! . Maybe you don't have permission to execute cat as www server
> user, or cat is not in your path.

No, that is not the proble, because:

1. This was a simpler example, in fact I tried to use


open (FILE, "/usr/local/qmailanalog/bin/zsenders \</var/log/qmail/qmail.log |") or die;

(Sorry for this change, the version with cat was written quickly just to be
sure, that qmailanalog is not the problem)

2. "/usr/local/qmailanalog/bin/zsenders \</var/log/qmail/qmail.log |" 

was executed without problems from within php3 script....

Once more, wat is happening with following example:



open(FILE,"/bin/cat \</etc/passwd |") or die;
 while (\<FILE>) {
     print OUT $_;
 }

causes browser to wait indefinitly long for reply.

Any more ideas?

-- 
Ryszard Łach
Internet Designers s.c. 
http://www.id.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to