Having a problem with a short pipe read

From: Brian (bmcandrews_at_gmail.com)
Date: 02/23/05


Date: 23 Feb 2005 07:58:25 -0800

I'm using the DBI module and along with a pipe read
(ie, my $line = <$handle>)

I populate a database table with the parsed results of $line.

the problem I'm having is that I'm getting some (not all) short reads
on the handle, meaning that's it's returning but not all the data is
there and there was no '\n' in the data that should have returned it.
A subsequent read ($line = <$handle>) will get the remaining data.

I picked up this code from a former co-worker and he made mention in
the script of there being a problem with DBI and the pipe which he
tried to fis with undefinig and resetting $SIG{PIPE} around the open
call that set up the pipe, but that doesn't seem to do the trick.

Has anyone else seen this behavior before and know of any fixes?

Thanks,
Brian



Relevant Pages

  • Re: Criteria for datbase function in one row?
    ... "grey" is the whole database; everything pasted above is in it. ... This formula looks through all pipe segments and finds the ones fed ... but picks the maximum pressure drop in any ... database, except that one of my categories is a Criteria, which also has to ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Read from database, write to another database, simultaneously
    ... interacting with the database not streaming large quantities from one ... All you need is a simple way to pipe the output from Oracle into ... Just run the oracle client and start dumping to the ...
    (comp.lang.python)
  • Custom pipe script failure code
    ... I have a quick question regarding the pipe function in Postfix and the use of PHP as a mail sorter/parser. ... I've looked around and see many people have used PHP as a quick and dirty solution for putting mail data into a database. ... What I want is to have this message return back into the normal mail queue with a temporary failure or something so it can retry at a later time without disappearing into never never land. ...
    (php.general)
  • Cannot backup WMSDE through pipe
    ... I have a backup application that has the option to backup SQL databases through pipe. ... On the same SBS 2003 the SBSMonitoring instance is fine too. ... DATABASE is terminating abnormally." ...
    (microsoft.public.sqlserver.msde)
  • Re: help with looking up in a table - all varaibles
    ... I have the nominal pipe diameter, this is the size of the ... The pipe schedule is what kind of pipe you are ... I have been trying to ask the database to look ...
    (microsoft.public.access.formscoding)