Solved

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

Posted on 1997-10-02
9
333 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
 
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logiā€¦
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.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

746 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

11 Experts available now in Live!

Get 1:1 Help Now