[ic] How do I display a timestamp during restart of IC

Rene Hertell interchange-users@icdevgroup.org
Mon Aug 12 13:54:02 2002


> Is this what you want? :
> 
> 
> 	#!/bin/sh
> 	var=`ps ux | grep interchange | grep -v -c grep`
> 	if [ $var -eq 0 ]; then
> 		 date
> 	         /command/to/start/interchange
> 	fi
> 
> ----EOF---
> 
> The added date command will print a time-stamp to STDOUT that will be
> grabbed by cron...you could even be really tricky and add: 
> 
> echo "Starting Interchange At: "
> date
> echo "\n"

This is exactly what I was looking for! Thanks for yor help!

Rene