Solved

problem with perl-script and apache-server

Posted on 1998-05-27
6
183 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
perl script help 12 104
Expect & sshpass package for Solaris 10 x86 15 896
crawling gofundme 4 121
perl: Cleaning meta tags using RegEX 12 64
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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 is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now