in reply to Re: Daemonize and open a file
in thread Daemonize and open a file

Thank you for the help, I will try this out when I get home tonight.

A log file was the next thing on my list to do funny enough.

So is there a way to find out what directory a script is running in? so that I dont have to hard code the path into the script.

I want people to be able to drop this into a cgi-bin and away they go without having to find out lots of information about their system.

Replies are listed 'Best First'.
Re^3: Daemonize and open a file
by OfficeLinebacker (Chaplain) on Jul 19, 2006 at 14:04 UTC
    As far as figuring out what directory you're in, perhaps $pwd=`pwd`;?

    _________________________________________________________________________________

    I like computer programming because it's like Legos for the mind.