Good morning ! On Monday, 6 April 2020 16:46, Thorsten Glaser <t...@mirbsd.de> wrote:
> Salve Noctambule, > > > I have a question about sleep builtin. I'm writing a script and at the > > end, I want it to simply wait for SIGINT (from user) or signals with > > kill builtin. > > The normal way to terminate sleep is SIGALRM though, but SIGINT > will most likely also work (try it out). Yes, it does the trick. Thanks for SIGALRM, I didn't know that. > > What is the maximum number of seconds that can be used with sleep ? > > This depends on your operating environment, specifically > the fifth argument to the select(2) syscall. Perfect ! Your help is valuable. Regards