Re: A nice-like command for making processes sleep from time to time
- From: Loki Harfagr <l0k1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 05 Oct 2011 11:21:17 GMT
Wed, 05 Oct 2011 12:51:29 +0200, kax did cat :
Hi, is there some way of launching a command from the shell in such a
way that the process will sleep x seconds every n seconds ? Of course I
am asking wether you can do it from "outside" (not by including it in
your own shell script for instance) a little like with the "nice"
command?
Regards,
If you don't want to use the real supercontroller (with 'nice')
you'll then have to mimic the interrupt/semaphore mechanisms.
Simplest way will be to include in your scripts some access to a
resource you'll control from outside the script, like loop and
wait/(test&set) for the presence of a file/fifo.
If your question concerns scripts to which you don't have
write access on machines to which you don't have 'nice' rights,
hey, wait a minute, freeze! ;D)
.
- Follow-Ups:
- Re: A nice-like command for making processes sleep from time to time
- From: kax
- Re: A nice-like command for making processes sleep from time to time
- From: Janis Papanagnou
- Re: A nice-like command for making processes sleep from time to time
- References:
- Prev by Date: Re: A nice-like command for making processes sleep from time to time
- Next by Date: Re: A nice-like command for making processes sleep from time to time
- Previous by thread: Re: A nice-like command for making processes sleep from time to time
- Next by thread: Re: A nice-like command for making processes sleep from time to time
- Index(es):
Relevant Pages
|