"Carsten P. Gehrke" <[EMAIL PROTECTED]> wrote:


> I am trying to write a simple Perl program (run_analog.pl) to invoke
analog
> with different command line parameters based on the links selected from
a
> list on an HTML page generated by the program.  The gist of the program
is
> this:
>
> if ($SiteNo eq "")
> {
>    &SiteSelection;
> }
> else
> {
>    print `/usr/bin/analog +g/home/vhost/logs/access_log +Ostdout`;
> }
>
> vhost in the above line would be a home directory selection through the
> HTML page created by &SiteSelection, which creates (among other things)
a
> list like this:
>
> <li><a href="/cgi-bin/run_analog.pl?SiteNo=1">Site One</a></li>
> <li><a href="/cgi-bin/run_analog.pl?SiteNo=2">Site Two</a></li>

Why not just use anlgform.pl with

<select name="LOGFILE">
  <option value=/home/vhost1/logs/access_log>Site One
  <option value=/home/vhost2/logs/access_log>Site Two
  <option value=/home/vhost3/logs/access_log>Site Three
</select>

or

<select name="cg">
  <option value=/home/vhost1/logs/access_log.cfg>Site One
  <option value=/home/vhost2/logs/access_log.cfg>Site Two
  <option value=/home/vhost3/logs/access_log.cfg>Site Three
</select>

as appropriate? (Your example uses +g but appears to point to a log file,
rather than a cfg file).

Aengus

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to