I have a little script. In it, i have to get a page where will be a number, that is very important to me.
lynx -dump http://192.168.0.2/venda_atual.php > temp.php
The problem is that when i see temp.php i get something like this.
Thatīs the number, but it have three spaces in front on it. Well, now let me put the script here and you will see my problem.
lynx -dump http://192.168.0.2/venda_atual.php > atual.tmp
venda=īhead -1 atual.tmpī
lynx -dump http://192.168.0.2/venda2.php?codigo=$venda > temp.php
dialog --yesno '\n Deseja imprimir a venda novamente?'\
--backtitle 'Demorgan Unifomes LTDA.' \
0 0 )
if [ $imprimir = 0 ]; then
The problem is the second time when lynx run. It gets three spaces on the url, and thatīs a problem because it wonīt work at all.
What can i do?
Also, are there any syntax error in my script?