Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to select which script will run?

Status
Not open for further replies.

JerryBarrett

Technical User
Jan 18, 2004
76
GB
I was directed here by some dude off the perl forum - I'm not sure its appropriate - but here goes.

I have several websites-with a common theme into which I want to insert some URL-unique info - I have a working perl script, but some of the webs are on a Linux server and lots are on a Windows IIS(5) server.

To call the perl script on the Linux system I have to use

<!--#exec cgi=&quot;cgi-bin/testtags.pl&quot;-->

or

<!--#exec cgi=&quot;./cgi-bin/testtags.pl&quot;-->

and

<!--#exec cgi=&quot;/cgi-bin/testtags.pl&quot;--> Will not work.


On the windows IIS I &quot;have&quot; to call the perl script with

<!--#exec cgi=&quot;/cgi-bin/testtags.pl&quot;-->

a relative path within the website will not work.


Any ideas how I get this down to one single path definition?

or

Enable some code to check the Server OS and do an if-then - dont forget this has to be server side otherwise search engines wont be able to see the stuff the perl script inserts.

Ideas appreciated please

Regards
Jerry
 
that perl dude is clueless...if it's server side than client-side javascript (this forum) won't do any good.

perhaps you can use php if your hosts support it?


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Jeff Hi
Yep back again - Perl is supported on both platforms, php isn't and I have a working perl script - going back to square 1 - wasn't really what I had in mind.

Thanks anyway - maybe when I have exhusted this option.

Cheers
Jerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top