Cron scripts are executed in "limited" environment, PATH and co are very restrained.

How can I emulate this env setting from interactive shell so that I could debug scripts that work great from user shell bug fail on the cron shell

link|improve this question

47% accept rate
feedback

1 Answer

I found this nice post on SO. One of the answers suggest to get the environment variables using env and directing the output to a text file in a cron job. Then, you can "import" the same variables in your current shell.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.