Linux command
at 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
at now + 5 minutes
Example
echo "command" | at 1000
Example
at -f [path/to/file] 9:30 PM Tue
List
at -l
View
at -c [job_number]
Remove
atrm [job_number]
说明
at executes commands at a specified time. Commands are read from standard input or a file and executed later. Results are sent to the user's mail. The atd daemon must be running for jobs to execute.
参数
- -f file
- Read commands from file instead of standard input
- -l
- List all queued jobs (alias for atq)
- -c job
- Print the commands of the specified job
- -m
- Send mail to the user even if there was no output
- -q queue
- Use the specified queue (a-z, A-Z)
- -d job
- Delete a job (alias for atrm)
- -v
- Show the time the job will be executed
FAQ
What is the at command used for?
at executes commands at a specified time. Commands are read from standard input or a file and executed later. Results are sent to the user's mail. The atd daemon must be running for jobs to execute.
How do I run a basic at example?
Run `at now + 5 minutes` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f file do in at?
Read commands from file instead of standard input