http://www.perlmonks.org?node_id=1062286


in reply to Re^2: Having a problem with my path
in thread Having a problem with my path

This is not an uncommon issue. The solution I use is to set the environment prior to calling the script I want ot run

30 01 * * * * . /path/to/myenv.env; /path/to/myscript

Replies are listed 'Best First'.
Re^4: Having a problem with my path
by taint (Chaplain) on Nov 13, 2013 at 01:42 UTC
    Thank you for clarifying. :)
    I tried to say that above:
    "Hard to fully diagnose without also seeing the actual cron. If you use a fully qualified path from the cron to mkvdts2ac3, when calling it, and use an absolute path to mkvmerge, when calling it from mkvdts2ac3. There should really be no problems."

    --Chris

    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;