Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Link Setup using cgi-wrap

Quote Reply
Link Setup using cgi-wrap
We are having difficulty setting up and using cgi based scripts. Our server uses a cgi-wrap program that reeks havic on any scripts that cgi based. How can we get around this. Or can we?

Using Perl is no problem but cgi forhet it!


------------------
Your gateway to shopping on the internet http://www.tdshopper.com
Quote Reply
Re: Link Setup using cgi-wrap In reply to
Hiya,

If your server is setup to use cgiwrap there is no way to get around it. It isn't that difficult to use though...all it does it change the naming convention so that when the script runs it runs as your username.

Say for example you have a script called cool.cgi

Normally it would be called through a web browser like this:
http://yourserver.com/yourdir/cgi-bin/cool.cgi

With cgiwrap you have to change the call like this:
http://yourserver.com/cgi-bin/cgiwrap/yourusername/cool.cgi

See how your moving the reference to your username? The first thing you are doing is calling cgiwrap which is in your servers cgi-bin. Based on the username provided in the URL it will cd to the appropriate directory and then run the script that follows your username.

So to use cgiwrap the first thing you type is:
http://yourserver.com/cgi-bin/cgiwrap/username

After that you simply put the name of the program you want to run...path info too if you have it in a sub-directory in your cgi-bin.

By the way Perl and cgi are virtually inseperable they go hand in hand because of perl's nature...so hopefully you'll get used to cgi quite quickly Smile

Rod