zoukankan      html  css  js  c++  java
  • crontab

    i found on online service http://www.onlinecronjobs.com,which provide cron online,it's aim to some isp only provide lamp etc.then you can upload a polling or shceaual operater,

    and in onlinescript,give the user,pin,than let them check it periordly.

    http://www.dbanotes.net/techmemo/crontab_tips.html

    http://www.kalab.com/freeware/pycron/pycron.htm replace for windows scheual http://wzp85.blog.51cto.com/2041568/381807  


    Windows task scheduler 的代替品 - pycron

    http://www.pantz.org/software/cron/croninfo.html

    http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/ good



    [精华] crontab命令详解


    http://www.chinaunix.net 作者:pcbird  发表于:2009-07-28 16:42:16
    发表评论】 【查看原文】 【Solaris讨论区】【关闭

    crontab命令的功能是在一定的时间间隔调度一些命令的执行。在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序。每个用户可以建立自己的调度crontab。 

    crontab命令有三种形式的命令行结构: 

    crontab [-u user] [file] 

    crontab [-u user] [-e|-l|-r] 

    crontab -l -u [-e|-l|-r] 第一个命令行中,file是命令文件的名字。如果在命令行中指定了这个文件,那么执行crontab命令,则将这个文件拷贝到crontabs目录下;如果在命令行中没有制定这个文件,crontab命令将接受标准输入(键盘)上键入的命令,并将他们也存放在crontab目录下。 

    命令行中-r选项的作用是从/usr/spool/cron/crontabs目录下删除用户定义的文件crontab; 

    命令行中-l选项的作用是显示用户crontab文件的内容。 

    使用命令crontab -u user -e命令编辑用户user的cron(c)作业。用户通过编辑文件来增加或修改任何作业请求。 

    执行命令crontab -u user -r即可删除当前用户的所有的cron作业。 

    作业与它们预定的时间储存在文件/usr/spool/cron/crontabs/username里。username使用户名,在相应的文件中存放着该用户所要运行的命令。命令执行的结果,无论是标准输出还是错误输出,都将以邮件形式发给用户。文件里的每一个请求必须包含以spaces和tabs分割的六个域。前五个字段可以取整数值,指定何时开始工作,第六个域是字符串,称为命令字段,其中包括了crontab调度执行的命令。 

    第一道第五个字段的整数取值范围及意义是: 

    0~59 表示分 

    1~23 表示小时 

    1~31 表示日 

    1~12 表示月份 

    0~6 表示星期(其中0表示星期日) 

    /usr/lib/cron/cron.allow表示谁能使用crontab命令。如果它是一个空文件表明没有一个用户能安排作业。如果这个文件不存在,而有另外一个文件/usr/lib/cron/cron.deny,则只有不包括在这个文件中的用户才可以使用crontab命令。如果它是一个空文件表明任何用户都可安排作业。两个文件同时存在时cron.allow优先,如果都不存在,只有超级用户可以安排作业。

    z3c.recipe.usercrontab 1.0

    User Crontab install buildout recipe

    Downloads ↓

    The problem

    When deploying applications, it can be useful to have maintenance tasks be started periodically. On Unix platforms this is usually done usingcron which starts cronjobs. Adding cronjobs to the system-wide cron directory (for example by placing a file in /etc/cron.d) can be handled using the zc.recipe.deployment package, but it does not support adding cronjobs by normal users. (as /etc/cron.d usually is world-writable).

    The solution

    z3c.recipe.usercrontab interfaces with cron using crontab(1), and allows normal users to install their own cronjobs. This is done by having buildout add and remove cronjobs when installing and uninstalling packages.

    How to use it

    To use z3c.recipe.usercrontab you need to add the following to your buildout.cfg:

    [mycronjob]
    recipe = z3c.recipe.usercrontab
    times = 0 12 * * *
    command = echo nothing happens at noon
    

    and finally add mycronjob to the parts line(s) of your buildout.cfg

  • 相关阅读:
    vue 中使用阿里iconfont彩色图标
    团队作业九
    团队作业八
    团队作业七
    第二篇
    第三篇
    第一篇
    beta冲刺计划安排
    团队作业六
    团队作业五
  • 原文地址:https://www.cnblogs.com/lexus/p/1832947.html
Copyright © 2011-2022 走看看