hwo to solve it# Unix - 噫吁兮,危乎高哉
s*i
1 楼
#!/bin/sh
#counter file must be chmod 666
counter=../cgi-bin/counter
echo "Content-Type: text/html"
echo ""
read acces < $counter
acces = 'expr $acces+1'
echo $acces
echo $acces > $counter
counter is a text file which only value inside is 1.
I want to increase the value of file counter by 1 and store it back to file
counter.
when I run it in shell, it always tell me: command acces not found.
why?
thx
#counter file must be chmod 666
counter=../cgi-bin/counter
echo "Content-Type: text/html"
echo ""
read acces < $counter
acces = 'expr $acces+1'
echo $acces
echo $acces > $counter
counter is a text file which only value inside is 1.
I want to increase the value of file counter by 1 and store it back to file
counter.
when I run it in shell, it always tell me: command acces not found.
why?
thx