Re: Cannot write to fifo

2011-08-29 Thread Jim Gibson
On 8/29/11 Mon Aug 29, 2011 7:53 AM, "Ramprasad Prasad" scribbled: > How can I open multiple FIFO files in perl and print to them simultaneously The program below only opens one FIFO. Is your problem related to opening multiple FIFOs or opening one FIFO? > I tried a simple script does not wor

Cannot write to fifo

2011-08-29 Thread Ramprasad Prasad
How can I open multiple FIFO files in perl and print to them simultaneously I tried a simple script does not work #!/usr/bin/perl use strict; use IO::File; $|=1; system("rm -f /tmp/fifo1;mkfifo /tmp/fifo1"); open (OUT,"> /tmp/fifo1") || die; for (0 .. 10){ print "Hi $_\n"; print OUT "H