1

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.

Eliah Kagan
  • 117,780
Sandoz
  • 114

1 Answers1

6

Don't use cron but at:

echo 'mycommand' | at 16:00

or

at 16:00 -f some_script.sh

See this

pLumo
  • 26,947