calebcall has asked for the wisdom of the Perl Monks concerning the following question:
A little background, I have a perl script that does a number of things, but one of them is it calls some system commands and one of those commands calls other system commands. (I call mkvdts2ac3, it calls mkvmerge) This is all running out of a cronjob under my user. When I run the script as my user, everything works fine. When I let the script run under the cronjob, it fails saying mkvmerge is not in my path.
I don't think this is really a perl problem, but rather a system (in general, how unix systems env variable are set) kind of problem.
What I'm wondering, is, has anyone run in to a similar problem and how have you solved it?
I've got PATH=/blah/blah/blah:/more/blah:/and/more set in my crontab, still no luck. Just wondering if anyone has any other ideas. In the meantime, I've edited the mkvdts2ac3 script to fully specify the mkvmerge path instead of just calling it from the system path. This isn't a long term solution I like, but works for now.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Having a problem with my path
by Happy-the-monk (Canon) on Nov 12, 2013 at 08:04 UTC | |
|
Re: Having a problem with my path
by Laurent_R (Canon) on Nov 12, 2013 at 07:19 UTC | |
|
Re: Having a problem with my path
by taint (Chaplain) on Nov 12, 2013 at 08:08 UTC | |
by calebcall (Sexton) on Nov 13, 2013 at 00:16 UTC | |
by astroboy (Chaplain) on Nov 13, 2013 at 00:52 UTC | |
by taint (Chaplain) on Nov 13, 2013 at 01:42 UTC | |
|
Re: Having a problem with my path
by Anonymous Monk on Nov 12, 2013 at 07:42 UTC |