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]> |
"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. -- Mike Small [email protected]