Solved

problem with perl-script and apache-server

Posted on 1998-05-27
6
193 Views
Last Modified: 2010-03-04
I want to run a simple perl-script on my isp's server. But whenever I call some sample scripts (included with the win32 package), it just doesn't seem to work.

Anybody out there, who can help me?
0
Comment
Question by:tjahn
  • 4
  • 2
6 Comments
 
LVL 5

Expert Comment

by:Trevor013097
ID: 1206398
Have you remembered to change the permissions to 755 so that the Perl script is executable.

Trevor.


0
 
LVL 5

Expert Comment

by:Trevor013097
ID: 1206399
tjahn,

Other things to look out for are:

1) Have you got the correct path to Perl on your ISPs server as your first line.  Should read something like:

#!/bin/perl

or

#!/bin/perl5

or even

#!/bin/usr/perl

2) Does the script require anything from Perl 5.003 and your ISP has only Perl 5.001.

If your ISP has a way to debug scripts then this might provide some useful info.  Try running the script directly from the command line.  Telnet in and in the directory where the script is type:

perl yourscript.pl


Trevor.


0
 

Author Comment

by:tjahn
ID: 1206400
The problem is, that I do not actually have telnet-access. Is there another way to change the file attributes? My own machine runs with NT.
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 5

Expert Comment

by:Trevor013097
ID: 1206401
tjahn,

You can ftp into your space and then (with an FTP program like WS_FTP you can right-click on the file when it is on the server and select chmod from the menu that pops up.  Then check all the boxes (chmod 777, same effect as 755, if you want 755 then 1st column all boxes and 2nd/3rd colum it is top and bottom boxes) and click OK.

Trevor.


0
 
LVL 5

Accepted Solution

by:
Trevor013097 earned 10 total points
ID: 1206402
tjahn,

I strongly suspect that the permissions have not be set and therefore the server will not be allowed to execute the script.

For scripts on the server you should set the chmod property to 755 or 777.  You can do this through telnet or using a FTP utility like WS_FTP.

Trevor.


0
 

Author Comment

by:tjahn
ID: 1206403
Unfortunately my ISP does not support PERL-scripts for security reasons.

But beside that, thank you very much!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
compress files in RAR using perl 13 81
Perl output collect 7 67
Perl Awk Need Help 3 118
Perl: How to add backslashes to every period in a string 1 22
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

778 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