Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux cron job (crontab) Examples     - To install and configure the Jetty server and JDK under Ubuntu 14.04.2 (Server)

- Regular expressions in Perl (Programming)

- Install Python 3.3.4 under CentOS 6.4 (Linux)

- RHEL7.0 environment Linux kernel upgrade (Linux)

- How Ubuntu Snappy Core 2 running on Raspberry Pi (Linux)

- Ruby and Python simple comparison (Programming)

- Ubuntu use three methods to install Ruby (Linux)

- Some of the bibliographic management tools to good use on linux (Linux)

- Heartbeat cluster components Overview (Server)

- Linux source code analysis tool (Linux)

- Linux Routine Task Scheduler (Linux)

- The difference between IPython and Python (Linux)

- ARM platform compiler installation Golang (Linux)

- Oracle 10g New Features - Archive Compression (Database)

- FFmpeg compiled with only H264 decoding library (Programming)

- Gentoo: startx appeared Failed to load module Problem Solving (Linux)

- How to fix Not Enough Free Disk Space On / boot on Ubuntu (Linux)

- Mistakenly deleted redo log file group being given the lead to start the database ORA-03113 (Database)

- Linux System Getting Started Learning: Linux how to install 7zip (Linux)

- CentOS 6.5 can not connect to the network under VMware (Linux)

  Linux cron job (crontab) Examples
  Add Date : 2016-10-09      
  Linux will implement the experimental example ---- "/ etc" The following files are packaged per 2 minutes stored in "/ usr / lobal" directory

Step1: Edit and save the current user's crontab
Input Terminal:
> Crontab -u root -l # view the root user to set a timer
> Crontab -u root -e # compiler enter vi mode

00-59 / 2 * * * * / bin / bash /usr/local/crontab_test.sh

Esc to exit edit mode, the input end of the file ": wq" to save

Step2: / usr / local directory, write file crontab_test.sh

! / Bin / bash
cd / usr / local
DD = `date +% d`
MM = `date +% M`
SS = `date +% S`

BACKETC = $ DD $ MM $ SS.tar.gz
tar zcvf $ BACKETC / etc
echo "filebackup finished!"

Step3: After the completed file, enter the following command in the terminal to modify the file permissions > Chmod u + x crontab_test.sh


(Wait a few minutes later, to the next / usr / local catalog can be found much better * .tar.gz file!)

Attachment: Specific use under Linux crontab can refer to "man crontab" command!
- Android child thread really do not update UI (Programming)
- The need to avoid a gap of InnoDB lock (Database)
- Mind mapping software installed in CentOS 7 in XMind (Linux)
- xCAT line installation on CentOS 6.X (Linux)
- error no.2013 lost connection Tom with SQLServer during query (Database)
- How to protect your eyes automatically adjust the screen brightness on Linux (Linux)
- Why JavaScript basic types can invoke methods (Programming)
- for (int a: i) the use of the Java programming (Programming)
- Using Linux strace command trace / debug a program commonly used options (Linux)
- High-performance JavaScript loaded and executed (Programming)
- Talk about Java in the collection (Programming)
- Xmanager Remote Desktop login CentOS 6.5 (Linux)
- File sharing and fork function (Programming)
- 25 Git Advanced Skills (Linux)
- LVM mirrored logical volume to achieve (Linux)
- FileZilla FTP && TLS connection settings of (Linux)
- Install GAMIT / GLOBK 10.50 software under Ubuntu 14.04 (Linux)
- floating IP in OpenStack neutron (Server)
- Linux installation skynet issue summary (Linux)
- Setting the RedHat9 Intrusion Detection System (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.