Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > pipe gzip error

Reply
Thread Tools

pipe gzip error

 
 
George Mpouras
Guest
Posts: n/a
 
      09-22-2011
Any one knows why I am getting this "Illegal seek" error ?

use strict;
use warnings;
my $fh;
open $fh, '| /bin/gzip --force --quiet > "/tmp/akuro1.1316680468"' or warn
"oups: $^E\n";
print "problem *$?* *$^E* *$!*\n";
close $fh;


 
Reply With Quote
 
 
 
 
Rainer Weikusat
Guest
Posts: n/a
 
      09-22-2011
"George Mpouras" <(E-Mail Removed)> writes:
> Any one knows why I am getting this "Illegal seek" error ?
>
> use strict;
> use warnings;
> my $fh;
> open $fh, '| /bin/gzip --force --quiet > "/tmp/akuro1.1316680468"' or warn
> "oups: $^E\n";
> print "problem *$?* *$^E* *$!*\n";
> close $fh;


That's because of an lseek performed by some library routine with
the failure apparently considered to be harmless. Generally, a
specific value of errno aka $! is not an indication that 'an error
occurred' on its own: This is only the case when 'an error occurred'
was specifically signalled to the code calling a 'system routine'.
And that's not the case with the code above.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Zlib::GzipFile::Error) not in gzip format RĂ©mi Gagnon Ruby 2 04-23-2009 07:34 PM
import gzip error (please help) syahreza.octadian Python 2 01-14-2008 02:26 AM
[named pipe] i wanna know about validate of pipe handle of client lee, wonsun C++ 1 11-02-2004 04:29 AM
GZip Compression for IIS 5.0/ASP .NET Chad A. Beckner ASP .Net 1 07-23-2004 02:13 AM
Why does IO::Pipe::END generate an EXCEPT pipe message? lvirden@gmail.com Perl Misc 1 06-02-2004 02:17 PM



Advertisments