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


in reply to Re: The "Perl script on command line works but as cronjob it fails" story revisited
in thread The "Perl script on command line works but as cronjob it fails" story revisited

Hi tobyink, shure.

But what really confuses me is: No mail, no syslog but my tmp files get written.

Unfortunatly i can't remote this boxes cause i'm @home today...

But i'll take a look in depth at it (env) when i'm back in office.

I checked the other issues yesterday - OK

And honestly, i don't have any idea why environment matters in this case.

Perhaps i made some false assumptions: e.g. that this boxes are clones...(as been told by the admin who did the setup).

Thanks and regards, Karl...and i'll give some feedback

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re^2: The "Perl script on command line works but as cronjob it fails" story revisited

Replies are listed 'Best First'.
Re^3: The "Perl script on command line works but as cronjob it fails" story revisited
by roboticus (Chancellor) on Mar 05, 2013 at 14:33 UTC

    karlgoethebier:

    In my (unfortunate) experience, clones are only identical the moment they're cloned. Normally there's an immediate tweak so they don't collide on the network. But soon after a package gets installed on one but not the other, or someone tweaks the "production" server and forgets to tweak the "backup" server. Or they make a test on the "backup" without cleaning up.

    The long and short of it is that I no longer trust anyone's statements when they tell me the system is a "clone". That's the reason you need to check the environment, permissions, account setups, etc. for everything that matters to your code, or the code that your code relies on.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.