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)
How can we use svg file as a icon of v-btn (vuetify button) ?
<template> <v-btn> <CustomIcon /> Click me </v-btn> </template> <script> // Import your SVG ...
-
Hello, I want to share couple of new features about java 22. Language Improvements: Unnamed variables & patterns (JEP 456): This enha...
-
This is all depend your gradle version. please check https://github.com/dcendents/android-maven-gradle-plugin i found my solution in there...
-
Öncelikle Eclipse Ide for JAVA EE developers olanı indiriyoruz ( Bu adresten işletim sisteminize uygun olanı indirebilirsiniz ).Herhangi bi...
No comments:
Post a Comment