Is there a way to identify a script is being run as an at job instead of interactively from the shell by a user?
Some of our scripts have a guard to check if they're running in screen by checking $TERM. I'm trying to figure out if I can intelligently check how execution of the script was initiated so I can update that guard statement OR if I should add an option that should always be included when run from an at job.