On Tuesday 30 March 2010 20:55:50 Murali K. Vemuri wrote: > Hi , > > I use busybox version 1.16.1. > I have two processes that have to be running all the time, but with some > differences in behavior. > > process 1: This process must be up and running all the time, but need > not be re-run every now and then. All I need is to ensure this process > exits, its automatically re-run. > > process 2: this process has a life span of about 20 seconds. So, I need > to make sure every 20 sec, this is run. This process exits > automatically. > > In the second case, I use "watch -t -n 25 process2" and that serves my > purpose. > But how do I achieve the process 1 functionality?
If your process blocks, "watch -n 1 your process should work" just in the first case as in the second. Watch won't interrupt it if it takes longer than 1 second to run, that's just how long it blocks between invocations. Try "watch -n 1 sleep 10" to see what I mean. Rob -- Latency is more important than throughput. It's that simple. - Linus Torvalds _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
