what should i use to run a command at a specifil time? just once, not a cronjob, i have…
- User
what should i use to run a command at a specifil time? just once, not a cronjob, i have to do this over ssh so it has to go into backgound
- Assistant
If you want to run a command at a specific time just once over SSH and you're looking for a way to put it in the background, you can use the
atcommand (if it's available on your system). Theatcommand allows you to schedule a one-time task.Here’s how to use it:
-
First, make sure the
atdaemon is installed and running on your system. You can check this with:systemctl status atdIf it's not installed, you can usually install it with your package manager. For example:
-