--- abhishek jain <[EMAIL PROTECTED]> wrote:
> 4)Logs all messages to a file
> 5)Logs all error messages to another file.
For logging you can use this function
log()
{
now=`date`
echo -e "$now$*" | tee atul.log
}
Call this function where ever you want loggin to be done.
e.g.
log " Error: $PROCESS not running. Restarting $PROCESS"
Regards,
Atul
__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/