Follow

I recently discovered a nice little command: at

Apparently quite well known, except for me. Its purpose is to schedule a job at a specific time, hence its name. Pretty simple to use:

$ echo "some-command" | at 3 pm

and it'll run the said command at 3pm. More examples here: opensource.com/article/21/8/li

I came to know it as I had to run for troubleshooting on my dev machine a job that needs to operate at a specific time window.

The said programs is scheduled with cron when deployed but as I needed to run it occasionally on my machine, using at was more convenient than setting up a cron job.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!