I wrote this shell script:
#!/bin/sh
PATH=/sbin:/usr/bin:/usr/sbin; export PATH
echo "Content-type: text/html"
echo ""
ROOT=/app/webchecker/controller
FILEIN=$ROOT/log/servcheckerstat.txt
FILEDOWN=$ROOT/bin/down_
FILEOUT=/tmp/wcHtmlStat.$$
$ROOT/bin/servckhtmlstat W $FILEIN $FILEDOWN $FILEOUT $QUERY_STRING
cat $FILEOUT
rm -f $FILEOUT
exit 0
servckhtmlstat is a C program which do all the job and write the file.
The problem is:
the shell script doesn't remove the temporary file .... why ????
P.S
I call the script from an html page.