in reply to Re: Perl script crashing at lockfile ?
in thread 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.

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

  • Comment on Re: Re: Perl script crashing at lockfile ?

Replies are listed 'Best First'.
Re: Re: Re: Perl script crashing at lockfile ?
by hardburn (Abbot) on Oct 08, 2003 at 13:36 UTC

    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