Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Background: I am working on CentOS

Details

# cat /proc/version
Linux version 2.6.18-308.4.1.el5PAE (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)) #1 SMP Tue Apr 17 17:47:38 EDT 2012

Question: How can i know which version cron daemon installed and running on machine

share|improve this question

3 Answers 3

up vote 5 down vote accepted

The dummy way:

whereis -b crontab | cut -d' ' -f2 | xargs rpm -qf
share|improve this answer
    
Nice Answer. Would you please explain the command? –  Md. Mahbubur R. Aaman Nov 15 '12 at 4:16
1  
search for a binary named crond, get the 2nd column of the output(the binary), then pass to rpm to look for it's belonging package. Note that in RHEL/CentOS cron daemon is named crond but not in some other OS. So I edited and use "crontab" instead which is more general. You can even filter from ps to figure out what binary is running –  MeaCulpa Nov 15 '12 at 7:45
    
+1 for your helpful Answer. Also thanks for your helpful comment. –  Md. Mahbubur R. Aaman Jan 1 '13 at 5:31

In EL6, you can check the version of cronie (contains crond) with yum:

sudo yum list installed cronie

fyi, cronie replaced vixie-cron in EL6.

share|improve this answer
    
+1 for Good Resource. –  Md. Mahbubur R. Aaman Jan 1 '13 at 5:30

On your centos system: rpm -q vixie-cron

Should be something like vixie-cron-4.1-77.el5_4.1

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.