Results 1 to 1 of 1
trying to blank a dvd with growisofs inside a perl script, it fails. it does not fail when i launch it just in bash:
my $args = "/usr/bin/growisofs -speed=2 -Z ...
- 07-31-2008 #1
perl+bash: growisofs blanking dvd option: fails
trying to blank a dvd with growisofs inside a perl script, it fails. it does not fail when i launch it just in bash:
in STDERR, i get:my $args = "/usr/bin/growisofs -speed=2 -Z /dev/scd0=/dev/zero 1 >> /dvdlog 2>/blanklog.error";
system($args);
i've also tried this funny loop, and also making `eject -t` and sleep(3) before launching the command. but what i get is always the same:-[ READ DISC INFORMATION failed with SK=2h/ASC=04h/ACQ=01h]: Resource temporarily unavailable
$growisofsOutputParser="for word in " . '$(cat /blanklog.error | grep -v /dev/scd0);' . " do if [ $word == ':-[' -o $word == '
' ]; then echo 'ERROR'; fi ; done";
$growisofsOutputParsed=system($growisofsOutputPars er);
for($i=0;'ERROR' == $growisofsOutputParsed && $i<5;$i++){
system($args);
$growisofsOutputParsed=system($growisofsOutputPars er);
sleep(1);
}


Reply With Quote