Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
go ahead... be a heretic
 
PerlMonks  

Re: perl script not running properly off web server

by krujos (Curate)
on Jul 31, 2002 at 19:37 UTC ( #186572=note: print w/ replies, xml ) Need Help??


in reply to perl script not running properly off web server

When your brother saved it in Linux it was probably the file permissions. Can you run the code form the command line in windows? If you are editing in windows and putting it back on to the Linux server check the file permissions (ls -l) . They should be -rwxr-xr-x. In windows I think there is a utility called calcs to query/change the access control list of the file. If the web server canít run it then you need to change that.
UPDATE: use strict and warnings and CGI harassment...
Your life, and finding a code problem in this script if it is indeed a code problem would be much easier if you were A. Using strict B. Using warnings and C. using CGI.


Comment on Re: perl script not running properly off web server
Re: Re: perl script not running properly off web server
by rjray (Chaplain) on Jul 31, 2002 at 20:27 UTC

    Another possibility, if he is editing the code under Windows and running under Linux (or vice-versa), it to check if the lines are properly delimited. Win/DOS delimiters can confuse the Perl parser under Linux, and I have no idea what the Linux/UNIX delims would do under Windows.

    --rjray

      You can try running dos2unix if you are going windows to linux and see if that helps. It should be a standard tool. if its not you can allways remove them by hand. I beleive they look like ^M at the end of each line.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://186572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-04-18 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (466 votes), past polls