suppress script output to avoid unwanted mails from cron
authorMiloš Mulač <mulac@civ.zcu.cz>
Mon, 7 Aug 2006 12:26:01 +0000 (12:26 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Mon, 7 Aug 2006 12:26:01 +0000 (12:26 +0000)
org.glite.lb/deployment/deploy_all.diff

index ad62d09..f6d2b36 100644 (file)
@@ -312,7 +312,7 @@ diff -u -r1.65.2.4 glite-lb-config.py
 +
 +          file = open('/etc/cron.d/glite-lb-export.cron', 'w')
 +          file.write('# periodically run purge and export jobs from bkserver\n')
-+          file.write('00,30 * * * * %s %s/etc/glite-lb-export-cron-wrapper.sh\n' % (params['glite.user.name'], os.environ['GLITE_LOCATION']))
++          file.write('00,30 * * * * %s %s/etc/glite-lb-export-cron-wrapper.sh 1>/dev/null\n' % (params['glite.user.name'], os.environ['GLITE_LOCATION']))
 +          file.close()
 +            os.system('/bin/chmod 0644 /etc/cron.d/glite-lb-export.cron')
 +