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.