Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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

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.


      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://186572]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-03-24 12:50 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (298 votes). Check out past polls.