According to =?iso-8859-1?Q?Manuel_Jes=FAs_Aguilera_Castro?=: > Thanks for your help, but I'm trying to execute the command line using > '&' and ';' and the output is always the first of several pages. I don't > know how I can obtain the second, third, etc. pages :( > > > ----- Original Message ----- > From: Torsten Neuer ... > On Thursday 07 November 2002 12:16, Manuel Jesús Aguilera Castro wrote: > > 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=ciudad > > > > Why the result page is the same when it executes "htsearch -c > > /etc/htdig.db2002.conf words=ciudad;page=2" ? > > > > Can you explain me the syntax of htsearch querystring in the command line? > > The "page" parameter seems like doesn't work. > > Ht://Dig may not honor the (more or less) new parameter delimiter character > ";", depending on the version of Ht://Dig you are running. Instead, you > should use the traditional "&" to separate parameters on the command line. > > Since you are using a script to post-process the output of htsearch, the > difference of using "&" instead of ";" would not be visible to the outside > 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 delimiters 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=ciudad;page=2" -- Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ htdig-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/htdig-dev