Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: Having a problem with my path

by astroboy (Chaplain)
on Nov 13, 2013 at 00:52 UTC ( #1062286=note: print w/ replies, xml ) Need Help??

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

Comment on Re^3: Having a problem with my path
Download Code
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."


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-02-11 08:10 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (362 votes), past polls