[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Random key



Hi debian users.I have a problem.

Freeze script and wait console when i try to run below script 40 or upper times so  I press ctrl + c and stopped process.

#!/bin/sh
i=1
j=1
while [ $i -lt 40 ]
do
head -c 60 /dev/random > t$j
sed 's/\e//' t$j > t`expr $j + 1`
sed 's/\Z//' t`expr $j + 1` > key$i
echo $i
i=`expr $i + 1`
j=`expr $j + 2`
done
exit 0

If i run above script 10 or less times,i have no error !!

why can not i run this code 40 or upper times ? I am waiting your idea and advice.

Thanks.


-----
Iyi calismalar.Basarilar...
Semih Gokalp
Istanbul/TURKIYE

Reply to: