Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /Data/.backup/script/fcron-3.3.0/debian/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //Data/.backup/script/fcron-3.3.0/debian/fcron-update-crontabs
#!/bin/sh
#
# fcron-update-crontabs
#
# Copyright (c) 2000 Thibault Godouet
# Released under the same license as the fcron program.

fcrontabdir=/var/spool/fcron

test -d ${fcrontabdir} || exit 0

# Recompile all crontabs
for FILE in ${fcrontabdir}/* ; do
        if test -f ${FILE} ; then 
		FCRONTAB=`basename "${FILE}" | \
                          sed "s|\..*orig|| ; s|new\..*|| ; s|fcrontab\.sig|| ; s|rm\..*||"`
        	( test ! -z "${FCRONTAB}" && fcrontab -u "${FCRONTAB}" -z ) || echo -n ""
	fi
done

ZeroDay Forums Mini