6/15/2023 0 Comments Gnome task scheduler with grsyncOnly the root user can view the at spool, so you must use sudo to view the spool or to cat the contents of any job. To see what's actually in a scheduled job, you have to look at the at spool. To remove a task from your queue, use the atrm command along with the job number. To view your at queue, use the atq command: $ atq Once you've embraced at and are scheduling tasks instead of scribbling notes to yourself on scraps of paper lying around your desk, you may want to review whether you've got jobs still in the queue. $ echo "echo hello" | at now + 3 days Viewing your at queue $ echo "/opt/batch.sh ~/Pictures" | at 3:30 AM These are examples of just a few valid expressions: $ echo "rsync -av /home/tux | at 3:30 AM tomorrow The time must come first, followed by the day, although the day defaults to the current day and is only required when scheduling a task for someday in the future. The at command is less forgiving in telling times from dates. When specifying relative times, you can use words you probably already use: Times and dates can be absolute or add a plus sign ( +) to make them relative to now. (full year, month, day, hour, minute, and optionally seconds) (abbreviated year, month, day, hour, minute, and optionally seconds) You can choose between many formats, depending on which is most convenient for you: The at command is pretty forgiving when interpreting times.
0 Comments
Leave a Reply. |