Skip to content

Instantly share code, notes, and snippets.

@jaturken
Created April 20, 2021 09:32
Show Gist options
  • Save jaturken/ae336161e4e0c3b69bf1e3eb0c1b1f96 to your computer and use it in GitHub Desktop.
Save jaturken/ae336161e4e0c3b69bf1e3eb0c1b1f96 to your computer and use it in GitHub Desktop.
Crontab expression: put random Chuck joke to shell login message. Run in root.
5 * * * * /usr/bin/curl --silent http://api.icndb.com/jokes/random | jq '.value.joke' | tail -c +2 | head -c -2 > /etc/motd 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment