Schedule its run every minute from the crontab on every LPAR. Change crontab output to >/dev/null

Hi,

is it a problem for the lpar2rrd agent when I change the crontab entry from:
# su - lpar2rrd
$ crontab -l 
* * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <LPAR2RRD-SERVER> > /var/tmp/lpar2rrd-agent.out 2>&1

to
# su - lpar2rrd $ crontab -l * * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <LPAR2RRD-SERVER> > /dev/null

Thanks!

Comments

  • Hi,

    error output should be redirected also to /dev/null otherwise crontab will try to send errors via email to lpar2rrd account, emails will be saved locally as undeliverable in /var/spool/...
  • this one I would suggest instead:
    * * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <LPAR2RRD-SERVER> > /dev/null 2>&1

  • thanks for the quick reply Pavel.
    I will change my crontab entry
Sign In or Register to comment.