Is there a way to create a temporary one-time only cron job from the command line? I’d like to have an egg-timer like function to open a terminal and do:
notify "time is up" 30
which would simply run this after 30 minutes:
zenity --info --text="time is up"
It seems easy enough for me to create, but I’m having a hard time believing no one has created something similar. Searching Ubuntu’s repository for timing packages doesn’t show anything. Has this been done before?
If you know that your
$DISPLAYwill be the same, you can do:Providing the environment variable in this way will make it available to
zenitywhen it’s run.