[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] How do I display a timestamp during restart of IC
On Sat, 2002-08-10 at 06:14, Rene Hertell wrote:
> Hi,
>
> I'm using this shell script to monitor if IC is down
> http://icdevgroup.com/pipermail/interchange-users/2002-May/021329.html.
---clip---
#!/bin/sh
var=`ps ux | grep interchange | grep -v -c grep`
if [ $var -eq 0 ]; then
/command/to/start/interchange
fi
---clip---
>
> What I would need is that IC would display a timestamp during the startup
> process that could be logged when redirecting the cron output to a log file.
>
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"
> Is it possible to somehow use the Message-command in interchange.cfg to
> display the current time?
too much work
>
> Regards,
>
> Rene
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
--
-------------------------------------------
| Caleb Phillips |
| The Studio Resource |
| IT Specialist |
| |
| Handcrafted for you in Ximian Evolution |
-------------------------------------------