"test sys_refresh_ref_cron.sh"
This commit is contained in:
parent
3d5728eeae
commit
cdc8900fa3
@ -141,14 +141,14 @@ function get_cronjobs
|
||||
IFS_BAK=${IFS}
|
||||
IFS=$'\n'
|
||||
CRONJOBS=$(ssh ${VM} "sudo crontab -u ${TETALAB_USER} -l | grep -v '^\#' | grep -v '^$' | grep -vP '^ +$' | grep -v '/usr/bin/run-parts'")
|
||||
RET_VAL=$?
|
||||
if [ ! ${RET_VAL} -eq 0 ]; then
|
||||
ERROR="Erreur lors de la récupération de la liste des jobs ${RET_VAL}"
|
||||
fct_erreur 3
|
||||
fi
|
||||
#~ RET_VAL=$?
|
||||
#~ if [ ! ${RET_VAL} -eq 0 ]; then
|
||||
#~ ERROR="Erreur lors de la récupération de la liste des jobs ${RET_VAL}"
|
||||
#~ fct_erreur 3
|
||||
#~ fi
|
||||
for CRONJOB in ${CRONJOBS}
|
||||
do
|
||||
fct_message ${CRONJOB}
|
||||
fct_message " - ${CRONJOB}"
|
||||
done
|
||||
IFS=${IFS_BAK}
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user