Tuesday, 4 February 2014

How to check CRON log in Linux

How to check CRON log in Linux

Step1: Login as root user

Step2: Check that if any cron job exist or not
[oracle@testdb64 ~]#crontab -e
59 23 * * * /home/rman/oracle_backup.sh

Step3: Check the cron log using following command 
[root@testdb64 ~]# tail /var/log/cron
Feb  5 10:30:01 testdb64 crond[17638]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Feb  5 10:40:01 testdb64 crond[18670]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Feb  5 10:50:01 testdb64 crontab[19725]: (oracle) DELETE (oracle)
Feb  5 10:50:01 testdb64 crond[19729]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Feb  5 10:50:04 testdb64 crontab[19734]: (oracle) LIST (oracle)
Feb  5 10:50:37 testdb64 crontab[19785]: (oracle) BEGIN EDIT (oracle)
Feb  5 10:50:44 testdb64 crontab[19785]: (oracle) END EDIT (oracle)
Feb  5 10:51:45 testdb64 crontab[19934]: (oracle) LIST (oracle)
Feb  5 10:52:26 testdb64 crontab[19984]: (oracle) BEGIN EDIT (oracle)
Feb  5 10:52:30 testdb64 crontab[19984]: (oracle) END EDIT (oracle)
[root@testdb64 ~]#

Cron log contains the following information:

Timestamp – The date and time when the cron job was executed
Hostname – The hostname of the server (For example, dev-db)
The cron deamon name and the PID. For example, crond[20399]
Username – The username under which this cron job got executed. For example, john.
CMD – Anything following this is the real command that got executed at that time.

1 comment:

  1. Jadwal Daftar Sabung Ayam SV388 15 Februari 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Jumat, Banten 15 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete