View Single Post
Old 2007-12-07, 11:28   Link #25
edogawaconan
Hi
*Fansubber
 
 
Join Date: Aug 2006
Send a message via MSN to edogawaconan Send a message via Yahoo to edogawaconan
Quote:
Originally Posted by TheFluff View Post
Looks like you either don't have cksfv or it's not outputting stuff in the expected format.

Or it could be some interesting problem with shell escapes; try if it works with another input filename.
yea it worked parentheses destroyed the script
here's my fix:
replace (line 17 and 31)
Code:
$input = `cksfv $filename`;
with this
Code:
$input = `cksfv "$filename"`;
...I've never work with perl before btw - in fact, I rarely make scripts/programs

tried on OpenBSD 4.2, with tcsh as its shell

update:
replace this too: (line 32)
Code:
$checksum = parse_cksfv($input);
with
Code:
$real_checksum = parse_cksfv($input);
or else the script will fail when checking file without crc in the filename
__________________

Last edited by edogawaconan; 2007-12-07 at 18:22.
edogawaconan is offline   Reply With Quote