Linux Ubuntu The system version passed Crontab Set the execution of scheduled tasks

This article is a summary of my collection of network information

Thank you very much :

1 crontab A brief introduction and the use of grammar

Refer to the :

2 Ubuntu Use crontab

2.1 Ubuntu in crontab Simple commands for
# See if it is installed crontab
crontab -l
# Ubuntu adopt apt Command to install crontab Software
apt-get-install cron
# start-up
service cron start
# restart
service cron restart
# stop it
service cron stop
# Check status
service cron stop
## This part of the order is obtained by me through other people's blogs , Validation available
2.2 Create... That needs to be executed on a regular basis bash Script files
# Create a test The file of , Write the contents of the timing task in this file 
vim test
# establish output.txt This file is used to receive the output of the timing task in the following steps
touch output.txt
# Write the following in the created file
# It runs every minute date Command to go at the same time /home/soft/output.txt Write the output to the file
* * * * * date >> /home/soft/output.txt
2.3 Execute timing task file
# Load the written timing task file to cron in , This step is important 
crontab test
# restart crontab
service cron restart
# View the scheduled tasks under the current user
crontab -l
root@incercadi:/home/soft/# crontab -l
* * * * * date >> /home/soft/output.txt
# After a few minutes, check whether the scheduled task is successful , If the content is written in it, the timing task runs successfully
cat /home/soft/output.txt

Linux Ubuntu The system version passed Crontab More articles on setting the execution of timed tasks

  1. Linux(Ubuntu) Use... Under the system crontab Perform tasks on a regular basis

    install cron(Ubuntu System comes with ) apt-get install cron Turn on crontab journal The log is not turned on by default , We need to find /etc/rsyslog.d/50-default. ...

  2. linux ubuntu Under the system ,adb Not an internal command ( How to make adb Commands can be used )

    linux ubuntu Under the system ,adb Not an internal command Original address linux ubuntu Under the system ,adb Not an internal command resolvent : 1.sudo gedit ~/.bashrc 2. Add the following two sentences to the top to open ...

  3. Inquire about ubuntu System version information

    Inquire about ubuntu System version information sky@sky-virtual-machine:~$ cat /etc/issueUbuntu 12.04.5 LTS \n \l proc Directory record of the current system running ...

  4. linux utilize crontab Set the timer to run jar package

    Reference link : 1. 2. ...

  5. ubuntu crontab Set timing task

    ubuntu Set timing task   crontab -l  # Check the details crontab -e # Set timing task * * * * * command  branch when Japan month Zhou command   The first 1 List minutes 1-59 Per minute * ...

  6. In the test crontab When executing a script , Revised linux System time ,crontab No more execution .

    I'm writing about the server today perl Script time , After finishing the first version of the script, I intend to pass crontab Let's test it , Because there's no problem executing the script file directly , But when it comes to crontab There are problems with regular execution , It's the appointed time , But script files ...

  7. How to view ubuntu System version information

    The first method : hadoop@master:~$ cat /proc/version Linux version 4.4.0-21-generic (buildd@lgw01-21):Linux Kernel version ...

  8. utilize workbench Yes linux/Ubuntu In the system mysql Database operation

    In the last article , I shared linux How to install mysql database , But it's just installed mysql Service for , No graphical management interface , So it's not so convenient to operate in this way , Now let's realize how to use the window Zhongan ...

  9. build Linux(Ubuntu) Under the system Differential Datalog Running environment

    DDlog is a bottom-up, incremental, in-memory, typed Datalog engine. It is well suited for writing pr ...

  10. Linux Check the system version and the number of digits

    1. View the kernel version command : 1) [root@www ~]# cat /proc/version    Linux version 2.6.9-22.ELsmp ( ...

Random recommendation

  1. VS2010+Qt5.4.0 Environment building ( Offline installation )

    Original author : Preface Because of the needs of the project Qt Development GUI, According to the information on the Internet and my own experience, I sorted out the building vs2 ...

  2. Database optimization series ——SQL Ten suggestions for performance optimization

    1. Fuzzy matching of queries   Try to avoid using... In a complex query LIKE '%parm1%'—— The percentage sign in the red position will cause the index of the related column to be unavailable , It's better not to use it . terms of settlement : In fact, we only need to improve the script a little , The query speed is ...

  3. Python Basics 4: data type : Numbers character string date

    [ Python data type ] We know , Almost any programming language has data types : Common data types are : character string . integer . Floating point type and boolean type, etc . Python No exception , It also has its own data type , There are mainly the following : 1. Numbers : ...

  4. UI In the third quarter —— UITextField Detailed explanation

    Jest :UITextField For the interface that needs to log in and register, the effect is quite obvious , But for the occlusion of the keyboard , But the point is ! This is about notification (NSNotificationCenter) The content of . // Registration events [[NS ...

  5. c++ Of Keng Zhenduo's first document

    I found that when a class makes parameters , Yes, you can not refer to the header file , That is not to say #include"xxx.h" Of , For example, the following is no problem #pragma once #include <string> ...

  6. HTTP Long connection implementation “ Server push ” Technology

    HTTP Long connection implementation “ Server push ” Technology quick start and demonstration examples In my mind HTTP It's a kind of “ A stateless agreement ”, I don't know the history of previous requests , The result of the last request cannot be preserved .Cookie The birth of , To make up for this deficiency , The browser can ...

  7. 【 turn 】winform Start another with parameters exe

      start-up EXE string arg1 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; string arg2 = "bbbbbbbbbbbbbbbb ...

  8. take ecshop Medium session Mechanism rewriting , from DB Migration to Memcache In the middle

    <?php if (!defined('IN_ECS')) { die('Hacking attempt'); } /*------------------------------------- ...

  9. android Process.killProcess and System.exit(0) difference

    1 Process.killProcess   and  System.exit(0) Both will kill Drop the current process . You can open it DDMS View process number , or adb shell Get into shell then ps ...

  10. hdu5338 ( Binary system , Double pointer )

    This kind of double loop optimization problem has met many times . Emerge in endlessly . But it's just to take advantage of the previous loop , The information generated , So as to reduce the calculation . It can be noted that log It's not more than 40 Of , So start with this , The time complexity can be reduced to nlogn log= ...