Jump to content
The Uniform Server Community

How do I get perl scripts to run?


PdV
 Share

Recommended Posts

Hi guys,

 

I really don't know anything about perl, but I'm moving an old website over to US and it includes some links to perl scripts for click tracking etc., but they don't work.

 

I've tried placing the perl scripts in a cgi-bin folder within the site's folder, one level above the folder and also in the cgi-bin in the w\ folder, but the scripts simply don't run like they used to when they were on another host.

 

As an example, I have a table listing files that can be downloaded, with a counter that shows the number of downloads, and the html source is currently:

 

<a href="../cgi-bin/track.pl?p=/downloads/vbrun300.dll">vbrun300.dll</a>

<img src="../cgi-bin/img_counter2.pl?sc=/downloads/vbrun300.dll" width="32" height="16">

 

The two perl scripts track.pl and img_counter2.pl are the scripts I want invoked.

 

Can you tell me what, if anything I need to change to get these working, please?

 

Many thanks,

Paul.

Link to comment
Share on other sites

  • 2 weeks later...

S'OK - found the problem!

 

I had a script called test.pl which displayed a 'success!' type of message, so Perl is definately OK.

 

Looked at the differences between that and the script I was trying to run and found that the first line was missing '/usr' from the path.

 

Added that and it all works OK now.

 

Thanks for your help guys.

 

Paul.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...