[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

problem with perl-script and apache-server

Posted on 1998-05-27
6
Medium Priority
?
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
Six Sigma Control Plans

656 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