zoukankan      html  css  js  c++  java
  • 创建、查看、删除计划任务at命令举例

    1、三天后的下午 5 点执行 /bin/ls :

      at 5pm + 3 days

      at> /bin/ls             结束按ctrl+d

      查看计划任务:at -l 之后 at -c <num>

      删除计划任务:at  -d  <num>    <num>用at -l 查看

    2、三个星期后的下午 5 点执行 /bin/ls :

      at 5pm + 2 weeks

      at> /bin/ls            结束按ctrl+d

      查看计划任务:at -l 之后 at -c <num>

      删除计划任务:at  -d  <num>    <num>用at -l 查看

    3、明天的 17:20 执行 /bin/date :

      at 17:20 tomorrow

      at> /bin/date  结束按ctrl+d

      查看计划任务:at -l 之后 at -c <num>

      删除计划任务:at  -d  <num>    <num>用at -l 查看

    4、2009 年的最后一天的最后一分钟印出 the end of world !

      (1)at 23:59 [20]09-12-31

          at> echo the end of world !  结束按ctrl+d

      (1)at 23:59 12/31/2009

          at> echo the end of world !  结束按ctrl+d

      (2)at 23:59 1231[20]09

          at> echo the end of world !  结束按ctrl+d

      (3)at 23:59 31.12.[20]09

          at> echo the end of world !  结束按ctrl+d

      查看计划任务:at -l 之后 at -c <num>

      删除计划任务:at  -d  <num>    <num>用at -l 查看

    5、3分钟,小时,天后打印hello

      (1)at now +3minutes

          at> echo hello  结束按ctrl+d

       (2)at now +3hours

          at> echo hello  结束按ctrl+d

      (3)at now +3days

          at> echo hello  结束按ctrl+d

       查看计划任务:at -l 之后 at -c <num>

       删除计划任务:at  -d  <num>    <num>用at -l 查看

  • 相关阅读:
    someThink
    快捷键
    typedef 的本质
    读取配置文件
    stl file
    摘自CSDNhttp://blog.csdn.net/gnuhpc/archive/2009/11/13/4808405.aspx
    thread demo
    B/S和C/S区别 java程序员
    上传文件 java程序员
    (八)VS的操作和使用技巧 java程序员
  • 原文地址:https://www.cnblogs.com/gchen-frank/p/12071862.html
Copyright © 2011-2022 走看看