What is Crontab and Crond Service ?
Hi,
Crond service provides for using periodic task in linux to us. Ok, now how can i use crond service ?
This example may be helpful.
Open MPutty or Putty and connect your server (Centos, Redhat vs)
#crontab -e
Add those lines
* * * * * ls>>/var/log/yourLogFile
Upper line provides every minute execute ls command and send output to yourLogFile.
This * means that
minute hour day month dayofweek command
# at 3:30 AM in the file /tmp/meminfo
30 3 * * /root/scripts/yourScript.sh >> /tmp/meminfo
# run custom script the second day of every month at 4:10 AM
10 4 2 * * /root/scripts/yourScript.sh
When you finish your job in file, you must be start crond service this command
#service crond start
Subscribe to:
Post Comments (Atom)
Java + HSM: Secure Key Management in Practice
Java + HSM: Secure Key Management in Practice When dealing with sensitive data, cryptographic keys should never leave secure hardware . T...
-
Docx4j unexpected element (uri:“http://schemas.openxmlformats.org/wordprocessingml/2006/main”, local:“p”) I am trying add html table in to...
-
Java is technically considered pass-by-value . Here's why it can be confusing: In Java, primitive data types (like int or double ) are ...
-
Hi, The wsimport tool is used to parse an existing Web Services Description Language (WSDL) file and generate required files -java class or...
No comments:
Post a Comment