This question already has an answer here:

This might be a duplicate post but couldn't find one.

I'm looking for a way to run a shell script once at a specific time.

Like run it once at 16:00 then remove from queue. crontab has no setting for this as I can find since it runs on repeat and not like fire and forget kind I'm looking for.

Anyone got a good suggestion? I want it to be run on Ubuntu 18.04 server version.

marked as duplicate by Eliah Kagan command-line Sep 4 at 17:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Don't use cron but at:

echo 'mycommand' | at 16:00


at 16:00 -f some_script.sh

See this

Not the answer you're looking for? Browse other questions tagged or ask your own question.