[root@dhcp-nebula-priv-52-7 pinger-2.0.3]# make install_cron
/bin/sh -c "cd /usr/local/share/pinger; /usr/bin/perl installCron.pl"
Setting Cron Interval to: once every 30 minutes

Old Crontab-Content

# --------------------------------------------------------------------
# Root crontab for Linux
#
# $Revision: 1.2 $ $Date: 2000/08/03 06:35:57 $ $Author: boeheim $
# --------------------------------------------------------------------
# --------------------------------------------------------------------
# Root crontab in common for all system types.
#
# $Revision: 1.408 $ $Date: 2015/01/30 18:29:18 $ $Author: bbense $
# --------------------------------------------------------------------
#
# Host-specific entries
#
#
#+ DO NOT EDIT BELOW THIS LINE
#
# System Administration
#
54 2 * * * /usr/etc/cronjob -stagger -summary -output /var/adm/taylor/logs/+D /afs/slac. stanford.edu/package/taylor/prod/taylor -pidcheck /var/adm/taylor.pid everything
16 4 * * * /sbin/hwclock --systohc >/var/ntp/hwclock.out 2>&1
#
# Attempt to deliver/flush pending mail (run the queue)
#
# RFC standard queue for 30 minutes.
1,31 * * * * /usr/etc/cronjob -summary /usr/lib/sendmail -L sm-msp-queue -Ac -q -ox9999
#
# For emergencies, when something needs to be run as root during the day on a
# large number of hosts
#
54 * * * * /usr/etc/cronjob -stagger -summary /afs/slac.stanford.edu/common/etc/emerge ncy
#
# Routine cleanup activities
#
54 2 * * * /usr/etc/cronjob -stagger -summary /afs/slac.stanford.edu/common/etc/findtrash
#
# sync RHN yum repos from satellite server to local yum repo
#
#
# AFS maintenance
#
#
# Patrol the system and enforce policy.
#
1,16,31,46 * * * * /usr/etc/cronjob -stagger -summary /afs/slac.stanford.edu/package/rang er/prod/ranger -pidcheck /var/adm/ranger.pid patrol
#
# Clean up sudo's pid directory, used to keep track of 5-minute grace periods.
#
54 3 * * 6 test -d /usr/adm/Sudo/times && find /usr/adm/Sudo/times -mtime +1 -type f -exe c rm -f {} \;
#
# SLAC syslog cleanup
#
# Rotate various logfiles using logrotate utility
# (Run cronjob daily -- logrotate will keep track of weeks, months or years)
#
1 0 * * * /usr/sbin/logrotate /etc/logrotate.conf
#

New Crontab-Content

# $Revision: 1.2 $ $Date: 2000/08/03 06:35:57 $ $Author: boeheim $
# --------------------------------------------------------------------
# --------------------------------------------------------------------
# Root crontab in common for all system types.
#
# $Revision: 1.408 $ $Date: 2015/01/30 18:29:18 $ $Author: bbense $
# --------------------------------------------------------------------
#
# Host-specific entries
#
#
#+ DO NOT EDIT BELOW THIS LINE
#
# System Administration
#
54 2 * * * /usr/etc/cronjob -stagger -summary -output /var/adm/taylor/logs/+D /afs/slac. stanford.edu/package/taylor/prod/taylor -pidcheck /var/adm/taylor.pid everything
16 4 * * * /sbin/hwclock --systohc >/var/ntp/hwclock.out 2>&1
#
# Attempt to deliver/flush pending mail (run the queue)
#
# RFC standard queue for 30 minutes.
1,31 * * * * /usr/etc/cronjob -summary /usr/lib/sendmail -L sm-msp-queue -Ac -q -ox9999
#
# For emergencies, when something needs to be run as root during the day on a
# large number of hosts
#
54 * * * * /usr/etc/cronjob -stagger -summary /afs/slac.stanford.edu/common/etc/emerge ncy
#
# Routine cleanup activities
#
54 2 * * * /usr/etc/cronjob -stagger -summary /afs/slac.stanford.edu/common/etc/findtrash
#
# sync RHN yum repos from satellite server to local yum repo
#
#
# AFS maintenance
#
#
# Patrol the system and enforce policy.
#
1,16,31,46 * * * * /usr/etc/cronjob -stagger -summary /afs/slac.stanford.edu/package/rang er/prod/ranger -pidcheck /var/adm/ranger.pid patrol
#
# Clean up sudo's pid directory, used to keep track of 5-minute grace periods.
#
54 3 * * 6 test -d /usr/adm/Sudo/times && find /usr/adm/Sudo/times -mtime +1 -type f -exe c rm -f {} \;
#
# SLAC syslog cleanup
#
# Rotate various logfiles using logrotate utility
# (Run cronjob daily -- logrotate will keep track of weeks, months or years)
#
1 0 * * * /usr/sbin/logrotate /etc/logrotate.conf
#
*/30 * * * * cd /usr/local/share/pinger; perl /usr/local/share/pinger/pinger2.pl > /usr/l ocal/share/pinger/pingerCronStat.stdout 2> /usr/local/share/pinger/pingerCronStat.stderr

Crontab successfully updated!!
We are done here exiting...
[root@dhcp-nebula-priv-52-7 pinger-2.0.3]#

  • No labels