run certain scripts periodically
[monitor.git] / rt3 / rtcron.d / syncadmins.sh
1 #!/bin/bash
2
3 echo "syncadmins.sh"
4 MDIR=/usr/share/monitor
5 source $MDIR/monitorconfig.sh
6 ${MONITOR_SCRIPT_ROOT}/plcquery.py --type person --withsitename --byrole admin \
7                                         --format="%(email)s,%(first_name)s %(last_name)s,%(name)s" \
8                                 | ${MONITOR_SCRIPT_ROOT}/rt3/adduserstort.pl priv -