Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239303
  • 博文数量: 91
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-12 09:38
文章分类

全部博文(91)

文章存档

2017年(1)

2011年(1)

2008年(15)

2007年(74)

我的朋友

分类: LINUX

2007-08-20 14:48:22

at
   syntax at [-f file] time or at [options]
   in the first form,enter commands to the at queue for execution at time. at allows fairly complex time specifications. it accepts times of the form HH:MM to run a job at a specific time of day.(if that time is aready past, the next day is assumed) you may also spcify midnight, noon, or teatime(4 pm), and you suffix a time of day with am or pm for running in the morning or evening. you can also say what day the job will be run by giving a date in month-day form, with the year being optional,or by giving a date in MMDDYY, MM/DD/YY or DD.MM.YY form. the date specification must follow the time-of-day specification. you can also give times like now+count time-units, where time-units can be minutes, hours, days, or weeks, you can tell at to run the job today by suffixing the time with today, and you can tell it to run the job tomorrow are taken from the file, otherwise at will prompt the user for commands.
   in the second form, list or delete jobs from the at queue.
 -d job1[,job2,....]
   delete jobs from the at queue by number(same as the atrm command)
 -l list items in the at queue(same as the atq command)
 example: run myprogram once at 6:15 pm tommorrow:
 $at 6:15pm tomorrow
 at>myprogram
 at>^d
 the ^d indicate that the typed Ctrl-D
 example 2
   run commands that are listed in the file command_list at 9 p.m two days from now:
   $at -f command_list 9pm+2 days
   list items in the at queue(root sees all users' entries)
   $at -l
   remove job number 5 from the at queue:
   $at -d 5

阅读(577) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~