Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1997-10-02
9
Medium Priority
?
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

 
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 1280 total points
ID: 1830711
<!--#exec cmd="PATH_INFO=/svk; export PATH_INFO; usr/local/etc/httpd/cgi-bin/kyrktorget/list.cgi"-->
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

715 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