Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^4: Authen::Krb5 Problem

by converter (Priest)
on Nov 06, 2008 at 15:45 UTC ( #722030=note: print w/replies, xml ) Need Help??

in reply to Re^3: Authen::Krb5 Problem
in thread Authen::Krb5 Problem

Add code to your script that dumps the environment variables (sorted) to a file. Capture the outputs of successful and unsuccessful runs and diff the files. You'll probably find that the limited environment provided by cron and at is missing one or more environment variables that are required to allow kerberos clients to work correctly on your system. If this is the case, you can create a file that exports the missing variables and source it in the crontab entry.

Replies are listed 'Best First'.
Re^5: Authen::Krb5 Problem
by gw1500se (Beadle) on Nov 07, 2008 at 14:25 UTC
    The only difference in environment variables that even has a long shot as far as I can tell is the shell. When run from command line it is using 'bash' and when running from 'cron' it is using 'sh'. Does perl even care? I thought perl runs in its own shell. Anyway, sourcing `. /etc/profile` in the script does not help.
      No, perl doesn't care. How did you check permissions?
        ls -l

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://722030]
[corenth]: Good morning (in my neck of the woods)
[Cosmic37]: hello perly kings and queens
[jedikaiti]: 'ello Monks
[Cosmic37]: and monkeys too...
[Cosmic37]: is anyone doing machine learning with Perl?
[Cosmic37]: I was using gneural code in C and it was interesting but did not have back propagation for neural networks
[corenth]: Cosmic, poking at it, but not really.
[Cosmic37]: I read that its possible to use the FANN library with Perl so I might try that now...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2018-02-20 18:11 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.