Quote:
Originally Posted by TheFluff
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