
danielpcorrea
Novice
May 12, 2009, 9:17 AM
Post #1 of 6
(1597 views)
|
|
problem sorting lynx result
|
Can't Post
|
|
Hi guys Im taking html data using lynx text-based web browser. Anybody can help me? Im receiving a strange error:
sh: Syntax error: Unterminated quoted string Non apre csv. at ./chk_calk.pl line 41, <TEMP1> line 24.
my $callynx="/usr/bin/lynx -source $grafico_link|"; print $callynx,"\n"; open (TEMP1, $callynx);# or die "non chiama lynx..."; while (<TEMP1> ) { if ($_ =~ m/csv/) { $csvtmp= substr($_,38,$numcarac); $urltmp="http://10.212.143.52/immagini/" . $csvtmp; $wgetexec="wget " . $urltmp; #prepara download .csv $system=system($wgetexec); #fa il download $csvtmp=$base_add . "/" . $csvtmp; open (TEMP2, $csvtmp) or die "Non apre csv."; while (<TEMP2> ) { print $_; } close (TEMP2); } } close(TEMP1);
|