Gossamer Forum
Home : General : Perl Programming :

Reading Pipe

Quote Reply
Reading Pipe
Hi Folks

I'm having a slight problem; for some reason my perl program does not want to read my pipe! Argh! I'm trying to read the output of the linux program "fortune" :-) but it just will not display the result. Here's my code:

$fortune_result = readpipe("fortune");

and then I print $fortune_result but nothing appears. Not even a CR. Nothing. I know the code works because it reads the result from any other program like df or even mail. It just won't read fortune.

Anyone got any ideas why?

Rgds
Wiliam Stephens