Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I get perl scripts to run?

Featured Replies

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.

  • 2 weeks later...
  • Author

Hi there,

 

Did that and I get a 500 - internal server error.

 

Is it broke? :)

  • Author

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.

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.