Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: perl script not running properly off web server

by krujos (Curate)
on Jul 31, 2002 at 19:37 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://186572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-19 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found