On Mon, Jul 08, 2019 at 05:53:22AM -0500, Peng Yu wrote: > Hi, > > `mutt -D` prints 'charset="iso-8859-1"' when it runs in a > non-interactive bash session scheduled by crontab. > > But the same command prints 'charset="utf-8"' when it runs in an > interactive bash session. I suspect that this is affected by an > environment variable. > > Does anybody know why there is such a difference?
Processes run by cron do not mimic your login environment. If you need specific things set that are typically set in .profile etc., you need to set them in your crontab file or the executed script. jl -- Jon H. LaBadie j...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)