crontab comparison

I want to compare crontabs on 6 servers in centos 7 using shell script. Please help me. Thanks in advance
kartheekSr. Linux AdminAsked:
Who is Participating?
 
dfkeCommented:
Hi,

if you wish to compare with a local file then I suggest you SSH into the remote machine and compare using diff:

ssh user@remote "cat /etc/crontab" | diff - /path/to/local/etc/crontab

Open in new window

Cheers
1
 
dfkeCommented:
Hi,

my answer will solve the asker's question.

Cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.