当前位置: 首页 > news >正文

linux执行计划步骤,linux下定时执行计划任务(Scheduled execution tasks under Linux).doc...

linux下定时执行计划任务(Scheduled execution tasks under Linux)

linux下定时执行计划任务(Scheduled execution tasks under Linux)

Scheduled execution tasks under Linux

Published at 11:33 2007-11-25, author: wangyu1314

View the /etc/crontab file

SHELL=/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=root

HOME=/

# run-parts

01 * * * * root run-parts /etc/cron.hourly

024 * * * root run-parts /etc/cron.daily

224 * * 0 root run-parts /etc/cron.weekly

4241 * * root run-parts /etc/cron.monthly

The first four lines are the environment variables that set the cron task running. The value of the SHELL variable specifies the SHELL environment used by the system (the sample is bash shell), and the PATH variable defines the path to execute the command. The output of the Cron in the form of an e-mail sent to MSILTO user name. If the MAILTO variable defined variable is defined as the empty string ("MAILTO="), e-mail will not be sent. Execute the command or script variables can be used to set the HOME home directory.

The description format for each line task in the file /etc/crontab is as follows:

Minute, hour, day, month, DayOfWeek, command

Minute - integers from 0 to 59

Hour - integers from 0 to 23

Day - integer from 1 to 31 (must be the valid date of the specified month)

Month - an integer from 1 to 12 (or as abbreviated as Jan or Feb)

DayOfWeek - an integer from 0 to 7, and 0 or 7 is used to describe Sunday (or Sun or Mon shorthand)

Command - commands that need to be executed (available as, LS, /proc, /tmp/proc, or instructions for executing custom scripts)

Root stands for running as a root user

"Run-parts" means a folder followed by all the scripts under that folder

For the above statements, the asterisk (*) represents all available values. For example, * when referring to month, it represents the command of the month (which needs to conform to other restrictions).

Integer between the hyphen (-) integer column, such as integer 1,2,3,4. is 1-4.

The specified value is separated by commas. For example, 3,4,6,8 represents the four specified integers

The

相关文章:

  • linux下跑酷游戏编程,【Unity3D开发小游戏】《跑酷小游戏》Unity开发教程
  • c语言中实型变量的三种类型,在C语言中实型变量分为两种类型.doc
  • 如何用c语言输出1 11 111,C语言练习1-11.doc
  • c语言 出库入库软件,终于把栈的实现库遍好了(C语言也可以用哦)
  • 数列极差问题c语言源代码,数列极差问题
  • c语言 输出链表函数,大神帮我看一下怎么输入输出一个链表,我输入了但是没输出啊...
  • android编程歌词显示,Android 音乐播放器实现歌词显示
  • android 代码 drawable,Android 通过DrawableInflater加载自定义Drawable
  • Android ui 单元测试 覆盖率,Android单元测试/Ui测试+JaCoCo覆盖率统计
  • android高德地图用地址获取经纬度,高德地图API-获取位置信息的经纬度
  • android notification 的总结分析,Android中Notification用法实例总结
  • 鸿蒙与微信小程序,从微信小程序到鸿蒙JS开发-页面路由
  • android 照片变油画,最近很火照片变油画Glaze软件
  • 华为mteo30用鸿蒙吗,华为mate50渲染图来了!真全面屏+高通芯+鸿蒙,这颜值确实不一般...
  • android 图片去色,android替图片去色,返回灰度图片
  • 03Go 类型总结
  • Angular4 模板式表单用法以及验证
  • co.js - 让异步代码同步化
  • iBatis和MyBatis在使用ResultMap对应关系时的区别
  • Laravel5.4 Queues队列学习
  • mac修复ab及siege安装
  • magento2项目上线注意事项
  • SegmentFault 社区上线小程序开发频道,助力小程序开发者生态
  • uva 10370 Above Average
  • VUE es6技巧写法(持续更新中~~~)
  • yii2权限控制rbac之rule详细讲解
  • 技术胖1-4季视频复习— (看视频笔记)
  • 经典排序算法及其 Java 实现
  • 一起参Ember.js讨论、问答社区。
  • Mac 上flink的安装与启动
  • shell使用lftp连接ftp和sftp,并可以指定私钥
  • 选择阿里云数据库HBase版十大理由
  • #{}和${}的区别?
  • #绘制圆心_R语言——绘制一个诚意满满的圆 祝你2021圆圆满满
  • (1)(1.8) MSP(MultiWii 串行协议)(4.1 版)
  • (42)STM32——LCD显示屏实验笔记
  • (C++)八皇后问题
  • (cos^2 X)的定积分,求积分 ∫sin^2(x) dx
  • (java)关于Thread的挂起和恢复
  • (Redis使用系列) Springboot 整合Redisson 实现分布式锁 七
  • (附源码)计算机毕业设计SSM基于健身房管理系统
  • (已解决)报错:Could not load the Qt platform plugin “xcb“
  • *ST京蓝入股力合节能 着力绿色智慧城市服务
  • ./configure,make,make install的作用(转)
  • .md即markdown文件的基本常用编写语法
  • .NET Core引入性能分析引导优化
  • .NET gRPC 和RESTful简单对比
  • .NET 线程 Thread 进程 Process、线程池 pool、Invoke、begininvoke、异步回调
  • .NET 应用启用与禁用自动生成绑定重定向 (bindingRedirect),解决不同版本 dll 的依赖问题
  • .net6+aspose.words导出word并转pdf
  • .Net调用Java编写的WebServices返回值为Null的解决方法(SoapUI工具测试有返回值)
  • .Net多线程总结
  • .NET开发不可不知、不可不用的辅助类(三)(报表导出---终结版)
  • .net与java建立WebService再互相调用
  • .net专家(高海东的专栏)