Hello,
I didn't keep the "real" line of code but it was more or less similar to :
$gpgCmd = "gpg --pinentry-mode=loopback --quiet --batch --passphrase-file $passphraseFile --decrypt $gpgFile_shell > $gpgTmpDir/$gpgFileBaseName_shell" ;
run "$gpgCmd" timeout(600) ;
This command was working (as far as I remember) but the reason I've tried using the "run" command instead of the 'system' one is because I was getting such an error :
IPC::Run: timeout on timer #1 at /usr/share/perl5/vendor_perl/IPC/Run.pm line 2951.
and the run command didn't prevent this error to occur and I thought it was coming from the "system" command.
But after I've bypassed this command (creating the gpg file manually to prevent the script to do it), I've noticed that I could have this error during the extraction of a tar file using the :
$tar->read("$gpgTmpDir/$gpgFileBaseName_shell") ;
$tar->extract() ;
$tar->clear ;
commands.
So, the system command was not the reason of the error.
In both cases, the error appeared when "big" files were used (big gpg or big tar file to be extracted).
I need to simplify my script to try to reproduce the issue more easily before posting again :)
Regards.
Xuo.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.