Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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
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;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-08-27 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (235 votes), past polls