-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Em 29/5/2010 06:56, Jorge Barros de Abreu escreveu:
> Olá.
>
> O arquivo gravado pelo script abaixo não contem os dados esperados.
>
> O script.sh é o seguinte:
>
> #!/bin/bash
> lynx -dump -accept_all_cookies -post_data
> 'http://www.bn.br/portal/?plugin=Isbn&url=/site/pages/servicosProfissionais/agenciaISBN/isbnBusca/FbnBuscaISBNCatalogo.asp?pField=ISBN&pIntPagina=1&tit=Procura'
> < parametro.txt
>
> o arquivo parametro.txt tem o seguinte conteúdo:
>
> pCDIDT=85-
> pISBN=85934239
> ---
>
> executo da seguinte forma:
>
> script.sh > x
>

Olá Jorge,


Já debugou ?

Tente:

bash -x script.sh

e veja o que acontece por dentro e irá entender onde está errando.

[]'s

- -- 


/*---------------------------------------------------*/
/*    *    Flavio Torres - Administrador de Sistemas*/
/*   /_\   */int y,z;main(x){x=(x>0?-9:x);z=((z=(x+5)
/*  o. .o  */)>0?z:-z);printf(!x&&++y?"\n":z?z>y%3+y/
/*  ((Y))  */3?" ":x<-5?"/":"\\":y?"|":"*");y-9?main(
/* ()) (() */++x):puts("  _|_|_")&&puts("  \\___/");}
/*  ()^()  A party animal isn't just for Christmas.*/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
 
iEYEARECAAYFAkwBHNAACgkQNRQApncg294CqACfUZ5XId2IvEv2iIqk6v6YR6Jp
d0kAnjsz974HfPbo1e/ZolLzXb2sagVS
=s7cV
-----END PGP SIGNATURE-----


Responder a