First Contact Timing Class of small procedures, or go a lot of detours, now finally settled, summarized as follows:
import Com.activityvip.api.service.SecurityBlockAccountService;
Import
Ubuntu uses crontab for scheduled tasks
1. Use the crontab-e command
This command is easy to use. Enter directly
~ # Crontab-e
An editing window will be opened. The first line will show the content format prompt:
M h Dom mon Dow commandSpecific
Small AIX system error -- crontab fault
System Environment:
Operating System: AIx 5.3.8
ORACLE: Oracle 10gr2
Fault symptom:
Oracle users cannot enable the crontab tool (other common users are also allowed by the root user)
[[Email
Cron comes from the Greek word chronos (meaning "time"), which is the next program in the Linux system that automatically executes the specified task. For example, if you want to create a backup of some files or folders every night while you sleep,
Cron is a Linux scheduled execution tool that can run jobs without human intervention. Since cron is a built-in service in Linux, but it does not automatically get up, you can use the following methods to start and close this service:/Sbin/service
sudo crontab-e5 * * * * 5 minutes per hour*/5 * * * * * every 5 minutes0 2 * * * Daily 2 o'clock in the morning executionCron is a timed execution tool under Linux that can run a job without human intervention. Since Cron is a built-in service for
Enter mail in Linux and enter your inbox.
D
Deletes the current message, and moves the pointer down.
D 3
Delete the message with the number 3.
D 1-100
Deletes the number 1th to 100th message.
When you exit, be aware that you must use the Q
The purpose of the crontab command is to submit, edit, list, or remove cron jobs.Grammarcrontab [-E [UserName] |-l [USERNAME] |-r [UserName] |-v [USERNAME] | File]DescribeThe crontab command submits, edits, lists, or removes cron jobs. A cron job is
crontab command
Use
Submit, edit, list, or drop a cron job.Grammar
crontab[-e[username]|-l[username]|-r[username]|-v[username]| File]Describe
This crontab command submits, edits, lists, or drops cron jobs. A cron job is a command that is run by a
Cron is a regular execution tool under Linux that can run jobs without human intervention. Because Cron is a built-in service for Linux, it does not automatically get up and you can start and close this service in the following ways:
/sbin/service
Release date:Updated on:
Affected Systems:Baseurl yum 3.4.3Description:--------------------------------------------------------------------------------Bugtraq id: 65119CVE (CAN) ID: CVE-2014-0022
Yum is a package manager under Fedora and RedHat
1, the meaning of each fieldSeconds 1 Seconds (0-59)Sub 2 Minutes (0-59)3 Hours (0-23)Day 4 days of month (1-31)Monthly 5 month (1-12 or JAN-DEC)Week 6 day of week (1-7 or Sun-sat)Year 7 years (1970-2099)2. Special characters"/": "1/20" means,
There are 2 types of cron expressions:Seconds Minutes Hours dayofmonth Month DayofWeek year orSeconds Minutes Hours dayofmonth Month DayofWeekTime of day and month of moonSpecial characters allowed for field allowed valuesSeconds 0-59,-*/Sub 0-59,-*/
About the implementation of PHP cron task management
Before each development of a scheduled task function requires online operation crontab to add new items, so you want to use PHP to unify the management of task items in a single project?
You can
Let's see the interface!
Cron. mxml:
Extendscheckbox.:
package com.gzhdi.backup.cron{import spark.components.CheckBox;public class ExtendsCheckBox extends CheckBox{private
The http://tangshuo.iteye.com/blog/184824 expression has a minimum of six bits, such as starting one o'clock in the morning every day:"0 0 1 * *?"ORDER BY seconds Date Month weekday year (optional)Allowed special characters for the allowable value
Need to use shell script every 3 seconds to monitor the running state of a software process, found that Crond seems to only support to the points, do not know seconds, how to do?
The first method:
Of course the first thought is to write a trigger
This example describes the PHP version of the Cron Timer task executor usage, which is a very useful functional application. The specific methods are as follows:
Since the server crontab can only be accurate to minutes, the starting point of the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.