|
From: Gilles D. <gr...@sc...> - 2002-11-08 04:21:31
|
According to =3D?iso-8859-1?Q?Manuel_Jes=3DFAs_Aguilera_Castro?=3D: > Thanks for your help, but I'm trying to execute the command line using=20 > '&' and ';' and the output is always the first of several pages. I don'= t=20 > know how I can obtain the second, third, etc. pages :( >=20 >=20 > ----- Original Message ----- > From: Torsten Neuer ... > On Thursday 07 November 2002 12:16, Manuel Jes=FAs Aguilera Castro wr= ote: > > Hello friends! I need your help. > > > > I'm using a PHP script that executes a command line like this: > > > > htsearch -c /etc/htdig.db2002.conf words=3Dciudad > > > > Why the result page is the same when it executes "htsearch -c > > /etc/htdig.db2002.conf words=3Dciudad;page=3D2" ? > > > > Can you explain me the syntax of htsearch querystring in the comman= d line? > > The "page" parameter seems like doesn't work. >=20 > Ht://Dig may not honor the (more or less) new parameter delimiter cha= racter=20 > ";", depending on the version of Ht://Dig you are running. Instead, = you=20 > should use the traditional "&" to separate parameters on the command = line. >=20 > Since you are using a script to post-process the output of htsearch, = the=20 > difference of using "&" instead of ";" would not be visible to the ou= tside=20 > world, so your script still can use ";". Whether you use the new ";" delimiter or the old "&" delimiter, you have to be careful when using either of these from the shell (either in a shell script or from the command line). They are both command delimite= rs to the shell, so they MUST be quoted if they are to be passed literally to the program being called. E.g.: htsearch -c /etc/htdig.db2002.conf "words=3Dciudad;page=3D2" --=20 Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) |