I get it now. I just needed to run each script exactly as it was. here's what I got:
Code:2TB-bash# ls crashHD-test1.tcl crashHD-test2.tcl 2TB-bash# ./crashHD-test1.tcl part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=1121 type=0 part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=263266 type=2 part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=263268 type=1 part_name=/dev/hda, x=2, devSectors(2)=1048576, pZone=1 type=2 part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=-2143322111 error during seek on "file13": invalid argument while executing "seek $fdDevs($x) [expr 512*$pZone+32]" (procedure "GetTotalSpace" line 51) invoked from within "GetTotalSpace" invoked from within "expr ([GetTotalSpace]/2)&0x7fffffff" invoked from within "set total [expr ([GetTotalSpace]/2)&0x7fffffff]" (file "./crashHD-test1.tcl" line 86) 2TB-bash# 2TB-bash# 2TB-bash# ./crashHD-test2.tcl part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=1121 type=0 part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=263266 type=2 part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=263268 type=1 part_name=/dev/hda, x=2, devSectors(2)=1048576, pZone=1 type=2 part_name=/dev/hda, x=0, devSectors(0)=1048576, pZone=-2143322111 error during seek on "file13": invalid argument while executing "seek $fdDevs($x) [expr (512*$pZone+32)&0x7fffffff]" (procedure "GetTotalSpace" line 51) invoked from within "GetTotalSpace" invoked from within "expr ([GetTotalSpace]/2)&0x7fffffff" invoked from within "set total [expr ([GetTotalSpace]/2)&0x7fffffff]" (file "./crashHD-test2.tcl" line 86) 2TB-bash#


Reply With Quote