in reply to Perl script crashing at lockfile ?

You're running under taint mode and don't appear to be setting $ENV{PATH}. You can't execute external programs under taint without setting the PATH env var. Better still is to write the lockfile code in pure Perl.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Perl script crashing at lockfile ?
by peterr (Scribe) on Oct 08, 2003 at 02:17 UTC
    You're running under taint mode and don't appear to be setting $ENV{PATH}. You can't execute external programs under taint without setting the PATH env var.

    How do I set $ENV{PATH} , and what should I set it to ?

    Better still is to write the lockfile code in pure Perl.

    The lockfile part of the code is now in pure Perl

    Thanks,

    Peter

      On most *nix systems, the PATH environment var is a colon-delimited list of directories where programs can be executed without specifying the full path. Setting it to /bin:/usr/bin is typical.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated