Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Hmm... I (largely) agree with you about cron, but are you sure the same applies to at? The man page on my system says "The working directory, the environment (except for the variables BASH_VERSINFO, DISPLAY, EUID, GROUPS, SHELLOPTS, TERM, UID, and _) and the umask are retained from the time of invocation.". Also, why should the command be a bash script specifically, rather than the zsh script the OP is already using? Commented May 12, 2021 at 22:56
  • @steeldriver: I recommend bash because it's a simple answer, and is a valid login shell (is in /etc/shells). Substitute any shell you like. It's a canned answer that I reuse. These "cron, at, batch, questions are so prevalent that I got tired of rewriting the same explanation. I asked about canned answers on Meta AskUbuntu. Commented May 13, 2021 at 0:52
  • @steeldriver It's title is "Am I a curmudgeon? Should I STFU?". I've continued the practice. Commented May 13, 2021 at 1:05