Solved

<!--#exec cgi="list.cgi/elev"--> ???

Posted on 1997-10-02
9
344 Views
Last Modified: 2013-12-25
I need to get the output from one script(WILMA) to get included via SSI to one page.
this script (http://scc.crossnet.se/cgi-bin/kyrktorget/list)
is a linkorganisation script.
The problem is that the categories looks like "list/svk" but
list is NOT a directory but a cgi command(perl).
And "/svk" is just a variable to that script.
My question is. Are there any way to directly include the "list/svk" directly into the webpage or by running it from the prompt?

The problem is that executing "list/svk" from the prompt or SSI means that you should start svk in the directory list.

Can anyone help me?

Linux/ Apache
0
Comment
Question by:nifer
  • 5
  • 4
9 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1830703
What server are you using?
0
 

Author Comment

by:nifer
ID: 1830704
Edited text of question
0
 

Author Comment

by:nifer
ID: 1830705
Running a Pentium Linux, with Apache webserver
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 84

Expert Comment

by:ozo
ID: 1830706
try
<!--#exec cmd="list.cgi path=elev"-->
$ENV{PATH_INFO} should be set from the original file,
but you should be able to see @ARGV when called with cmd=
0
 

Author Comment

by:nifer
ID: 1830707
How do I fix that?

the source is here:
http://scc.crossnet.se/kyrktorget/list


0
 
LVL 84

Expert Comment

by:ozo
ID: 1830708
Maybe something like:

$_ = $ENV{PATH_INFO};
$_ = $1 if( $ARGV[0]=~/\bpath=(\S)*/i );
s|^/*\.*!!;   # strip leading /.
$path_info = $_;


(But I wonder if it might also work to have
<HEAD> <BASE HREF="http://scc.crossnet.se/cgi-bin/kyrktorget/list"> </HEAD>
<!--#exec cgi="list.cgi"-->
and have the path set from the new base?)

0
 
LVL 84

Expert Comment

by:ozo
ID: 1830709
On second thought, I don't think <BASE HREF> will work, but you might try something like:
<!--#exec cmd="PATH_INFO=/svk; export PATH_INFO; /usr/local/etc/httpd/cgi-bin/kyrktorget/list.cgi"-->
0
 

Author Comment

by:nifer
ID: 1830710
The <!--#exec cmd="PATH_INFO=/svk; export PATH_INFO; /usr/local/etc/httpd/cgi-bin/kyrktorget/list.cgi"-->
Worked Well!!
But the changes of the script was not necessary, (didnt work at all)..

Thanks!
0
 
LVL 84

Accepted Solution

by:
ozo earned 320 total points
ID: 1830711
<!--#exec cmd="PATH_INFO=/svk; export PATH_INFO; usr/local/etc/httpd/cgi-bin/kyrktorget/list.cgi"-->
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now