Maxim Veksler Asked: 2012-02-01 01:06:59 +0800 CST2012-02-01 01:06:59 +0800 CST 2012-02-01 01:06:59 +0800 CST Dropping to cron like environment for debug purposes? 772 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 linux cron shell 1 Answers Voted Khaled 2012-02-01T01:20:52+08:002012-02-01T01:20:52+08:00 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.
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.