[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] script com lynx -post_data
From: |
Flavio Torres |
Subject: |
Re: [shell-script] script com lynx -post_data |
Date: |
Sat, 29 May 2010 10:55:28 -0300 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 |
-----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-----