Ucronadm - Tools to Manage Ucron
#!/bin/sh
# If the file oldnews.shtml is present, it will contain a list of
# all the release notes. In that case we only need to list the most
# recent one here.
oldnews()
{
f=`echo $news|cut -f 1 -d ' '`
s=`basename $f .shtml | cut -c 6-`
echo "News in $s"
echo ""
echo "Old news"
echo " "
exit
}
test -n "$QUERY_STRING" || exit
dir=/var/www/vhosts/"$QUERY_STRING"
cd "$dir" || exit
echo "Content-type: text/html"
echo
news=`ls -t news-*.shtml`
c1="#99ccff"
c2="#ffffff"
bgcolor="$c1"
test -f oldnews.shtml && oldnews
echo " "
for f in $news; do
s=`basename $f .shtml | cut -c 6-`
echo ""
echo "News in $s"
echo " | "
if test "$bgcolor" = "$c1"; then
bgcolor="$c2"
else
bgcolor="$c1"
fi
done
echo " "
This is a collection of tools to manage Ucron
from a central point. The program ucronadm is used from the command
line and ucroncgi allows the crontabs to be administered from a web
browser.
The crontabs of all nodes are stored in any database supported by
LibSDB.
This program is known to work on Linux, HP-UX and Solaris. Other Unixes
should work as well; editing the Makefile may be necessary.
I am Ulric Eriksson, ulric@siag.nu.
Change log
Installation
See INSTALL.
Download source
The same over http in case the ftp server is busy
More stuff
#!/bin/sh
echo "Content-type: text/html"
echo
echo ""
Ulric Eriksson - April 2002 - ulric@siag.nu
|