To edit the root crontab in Debian I do for example sudo crontab -e
. To exit from the preferred text editor (Nano), I do CTLR+X
.
So far so good, but what if I want that each time I exit crontab, a text will be echoed into the console (into "stdout").
The purpose is to echo
a reminder message like:
If you haven't already, change
p
to your password inpassword[p]
to your password!
To make sure I'm clear here --- I desire that each time the user finished editing the crontab and then quited back to the console, the message will appear.
Is there any way to do so in the current release of Bash?