40.9 Checking and Removing JobsFrom time to time, you'll submit an at job and realize that there's something wrong with it. How do you get it out of the queue? Two tools help you do this: atq , which reports the jobs that are in the queue, and atrm , which deletes jobs that are already in the queue. atq is pretty simple; by default, it reports on all jobs that have been queued. Optionally, you can give it a user name as an argument; in this case it reports all the jobs queued by the given user. The report looks like this: los% Note that atq has no objection to telling you about other users' jobs. Although this might seem like a security hole, it's actually useful - see article 40.5 . The jobs are ordered according to their execution date. With the -c option, atq orders jobs according to when they were queued - conceivably a useful feature. (atq - n just prints the number of jobs that are queued; I'm not sure when this would be useful.) Once you've found out the job number, you can delete it with the command atrm . You can only delete your own jobs, not someone else's: % The command atrm - removes all the jobs you submitted; it's good for cleaning out your queue completely.
- |
|