Re: [Boston.pm] script works ok on command line, hangs when run from shell script
Mike Small <[email protected]>
| Newsgroups | gmane.comp.lang.perl.perl-mongers.boston |
|---|---|
| Message-ID | <[email protected]> |
Mike Small <[email protected]> writes: > Mike Small <[email protected]> writes: > >> "Greg London" <email-2Ro/Dj86MvDSUeElwK9/[email protected]> writes: >> >>> This may very well be a unix thing, not a perl thing, >> ... >>> The -nobuffer is trying to get it to flush its output >>> to STDOUT, rather than buffer it a block at a time. >> >> >> If using a different shell isn't a solution for you maybe there's a way >> to get the file descripter from a Perl handle and use fcntl with F_SETFL >> and O_NONBLOCK to make C do what you want. I've never tried this myself. > > Bah! Ignore this advice. I just told you to do in worse way what Bill > told you that I disagreed with. I was wanting fcntl to have a "do line > buffering" flag but I don't see it. Hi again. Maybe O_DIRECT is the flag you seek? -- Mike Small [email protected]