check_oracle_health: update to 1.9.3.5
[omd.git] / packages / maintenance / merge-crontabs
blobe0a35f98c80fc2385f8e54ab97cbb3584aaddf70
1 #!/usr/bin/python
2 # This script is part of OMD
3 # Joerg Linge 2010
5 import sys
6 import os
8 sys.stdout.write("""#
9 # Do not edit this file. It will be recreated each time OMD
10 # is started or reloaded.
12 # execute 'omd reload crontab'
13 # to rebuild this file out of %s/etc/cron.d/*
15 # --ENVIRONMENT------------------------------------------------
16 """ % os.environ['OMD_ROOT'])
18 sys.stdout.write("OMD_ROOT=%s\n" % os.environ['OMD_ROOT'])
19 sys.stdout.write("OMD_SITE=%s\n" % os.environ['OMD_SITE'])
20 sys.stdout.write("PATH=%s\n" % os.environ['PATH'])
21 sys.stdout.write("# ------------------------------------------------------------\n")
24 for fn in sys.argv[1:]:
25 lineno = 0
26 sys.stdout.write("# %s\n" % (fn))
27 for line in file(fn):
28 lineno += 1
29 ls = line.strip()
30 sys.stdout.write(line)
31 sys.stdout.write("# ------------------------------------------------------------\n")