A system administrator writes a script that extracts data from a CSV file and inserts it into a database. The script works correctly when run manually but fails when executed by cron. Which environment variable is most likely causing the issue?
Trap 1: SHELL
SHELL is set by cron to /bin/sh or the user's shell.
Trap 2: LANG
LANG affects locale but not command availability.
Trap 3: HOME
HOME is set by cron to the user's home directory.
- A
SHELL
Why wrong: SHELL is set by cron to /bin/sh or the user's shell.
- B
LANG
Why wrong: LANG affects locale but not command availability.
- C
HOME
Why wrong: HOME is set by cron to the user's home directory.
- D
PATH
PATH is often not set in cron, causing command not found errors.