Created
April 20, 2021 09:32
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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