Re: Re: command to ensure other command does last longer than5 seconds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, 2007-04-07 at 13:37 -0500, Les Mikesell wrote:
> William L. Maltby wrote:
> > 
> > Yes. My goal though is to use shell scripts because I assume no "C"
> > expertise from most admins and users, although it is certain many of
> > them have some based on my experience.
> 
> (sleep 5 && kill $$) &
> exec program_that_better_work_fast

That works, of course. But the majority of the thread has been oriented
to greater precision when considering "startup" times. This has the flaw
that Rodrigo (sp?) was trying to address. But I sure didn't think of the
"$$". That saves a couple of lines.

> 

--
Bill

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux