Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Passing Parameters through Swish-e to use in additional hyperlinks/forms

From: Peter Karman <peter(at)>
Date: Sun Dec 21 2008 - 02:31:38 GMT
Richard Byrne MRCVS Partner wrote on 12/16/08 4:02 AM:

> We start the program that runs swish from a Unix shell script and pass the 
> search parameters from this script. As you can see from the snippet above we 
> have to enter the email address into the 'html form' created in swish before 
> we can email the indexed PDF to the recipient - we know broadly what is in 
> the file so don't need to read it.
> Is there any way of including 1 or more 'dummy / user defined parameters' in 
> the swish-e shell script that are simply passed through the swish program ( 
> and ignored by it ) but are 'recoverable' and usable in the form snippet so 
> that one would not have to manually reenter the email address etc manually  -
>  you would just simply click on the Send button
> e.g.
> --SNIP
>  <dd>$description
>         <HR>
> <form name="form1" method="post" action="/cgi-bin/">
> <input name="File" type="hidden" id="File" value="$this_result->
> {swishdocpath}">
> <input name="Email" type"hidden" id="Email" value="$this_result->
> {dummy_param_passedthroswish_emailaddress}">
> E-mail this file to $this_result->{dummy_param_passedthroswish_emailaddress}
> --SNIP

if you are using swish.cgi, I expect you could access the CGI object being used
and just grab the params from there. Your description of your shell script
confuses me, since I've only ever used swish.cgi directly as a CGI via Apache.

Peter Karman  .  .  peter(at)
Users mailing list
Received on Sat Dec 20 21:26:16 2008