HP3000-L Archives

August 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Newman, Kevin:" <[log in to unmask]>
Reply To:
Newman, Kevin:
Date:
Mon, 16 Aug 1999 08:48:52 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
Joseph,

Be sure and tell Perl to NOT use its default buffering.   Have it write
to the file as soon as it can instead of buffering the output to the
file.

ie: $| = 1;

Kevin

> -----Original Message-----
> From: Joseph Norris [SMTP:[log in to unmask]]
> Sent: Monday, August 16, 1999 6:53 AM
> To:   [log in to unmask]
> Subject:      Trouble with fread after open of fifo
>
> Hello group,
>
> I have a Perl process opening a fifo file for write access in the
> Posix
> file space and a Cobol program opening a fifo file for read in the
> MPEix
> file space. The perl open is successful but it appears the the write
> to
> the file does not happen (i have those little debugging messages that
> tell
> me where I am). The Cobol program successfully opens the fifo file (no
> errors in the hpfopen call) and then returns a greater than condition
> code. I am not sure what is happening here. Can anyone suggest some
> paths
> to debugging this problem?
>
> Thanks.
>
> #Joseph Norris (Perl - what else is there?/HP3000/Linux/CGI/Msql)
> print @c=map chr
> $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,
> -68,4,-3,-1,7,1,14,-68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);

ATOM RSS1 RSS2