Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Strange File Not Found Error

by Anonymous Monk
on Jun 14, 2001 at 23:15 UTC ( #88578=note: print w/replies, xml ) Need Help??

in reply to Strange File Not Found Error

Do a print `pwd` in your script. Instant Enlightenment Guarateed!!

Replies are listed 'Best First'.
Re: Re: Strange File Not Found Error
by Anonymous Monk on Jun 14, 2001 at 23:18 UTC
    Oops! Sorry I meant print `ls -l /`. (Hint: Many webserver are in chroot-Environment)
      I'm not sure where you're going with this...

      The ls -l / prints out the / directory as expected. What's the enlightenment?

      Learning Perl or Going To die() Trying

        Better method:

        $|= 1; print join( ":", (stat("/"))[0,1] ), $/;
        and compare these values between when run from the command line vs. when run as a web script. If they are different, then "/" is different in the two environment because one (probably the web server) is chrooted as a security measure.

        If this is the problem, then you'll have to copy the file to someplace under the web server's virtual root.

        BTW, `ls -ali /` is probably more what the original suggestion should have been.

                - tye (but my friends call me "Tye")
        ls -l because of the dates (it could be a copy of the / dir)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2023-03-29 02:51 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (70 votes). Check out past polls.