Re: BSD sleep

2013-05-30 Thread Jens Schweikhardt
On Tue, May 28, 2013 at 07:01:40PM -0400, Kenta Suzumoto wrote: # Hi. Is there no built-in way of making "sleep" sleep in increments # of minutes, hours, etc? The GNU "sleep" can be invoked like "sleep # 1h" for an hour. The FreeBSD one's manpage leads me to believe we # can only use seconds, wh

Re: BSD sleep

2013-05-29 Thread Stuart Barkley
On Tue, 28 May 2013 at 19:01 -, Kenta Suzumoto wrote: > Hi. Is there no built-in way of making "sleep" sleep in increments > of minutes, hours, etc? The GNU "sleep" can be invoked like "sleep > 1h" for an hour. The FreeBSD one's manpage leads me to believe we > can only use seconds, which is k

Re: BSD sleep

2013-05-29 Thread Alexander Yerenkow
I'm just saying that there's pretty space for discussion. If someone raised this now, why not discuss it now. > If you sleep one hour, do you sleep one hour from now or one hour from the system clock which may change in the next hour? If it's the system clock, you may sleep for ten minutes or ten

Re: BSD sleep

2013-05-29 Thread Jason Birch
> Seriously, that explanation about different hours is not enough to prevent > at least useful option. > like > sleep -f 1h > (-f means force convert, without it you can see good explanation why sleep > for 1 hour will be not sleep for 1 hour, and etc, and not get sleep at > all.). > Do one thing,

Re: BSD sleep

2013-05-29 Thread Michael Sierchio
On Tue, May 28, 2013 at 4:45 PM, Joshua Isom wrote: > You think it's trivial until you read this: > > http://infiniteundo.com/post/**25326999628/falsehoods-** > programmers-believe-about-time > > Some days have 8

Re: BSD sleep

2013-05-29 Thread Alexander Yerenkow
>what is stopping from interpreting 1h in similar manner to 3600? i.e. from now No, this is user-friendly, and thus can't be done :) But if think a second, sleep is used rarely by average users, mostly by programmers and other scripts, and they should know better what they are doing. Seriously, t

Re: BSD sleep

2013-05-29 Thread Quark
>You think it's trivial until you read this: > >http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time > >If you sleep one hour, do you sleep one hour from now or one hour from >the system clock which may change in the next hour?  If it's the system >clock, you may s

Re: BSD sleep

2013-05-29 Thread Chris Rees
On 29 May 2013 07:13, "Matthew Seaman" wrote: > > On 29/05/2013 05:59, Michael Sierchio wrote: > > On Tue, May 28, 2013 at 4:45 PM, Joshua Isom wrote: > > > > > >> You think it's trivial until you read this: > >> > >> http://infiniteundo.com/post/**25326999628/falsehoods-** > >> programmers-belie

Re: BSD sleep

2013-05-28 Thread Matthew Seaman
On 29/05/2013 05:59, Michael Sierchio wrote: > On Tue, May 28, 2013 at 4:45 PM, Joshua Isom wrote: > > >> You think it's trivial until you read this: >> >> http://infiniteundo.com/post/**25326999628/falsehoods-** >> programmers-believe-about-time

BSD sleep

2013-05-28 Thread Kenta Suzumoto
Hi. Is there no built-in way of making "sleep" sleep in increments of minutes, hours, etc? The GNU "sleep" can be invoked like "sleep 1h" for an hour. The FreeBSD one's manpage leads me to believe we can only use seconds, which is kind of annoying. Is there an undocmented or missing feature her

Re: BSD sleep

2013-05-28 Thread Joshua Isom
On 5/28/2013 6:01 PM, Kenta Suzumoto wrote: Hi. Is there no built-in way of making "sleep" sleep in increments of minutes, hours, etc? The GNU "sleep" can be invoked like "sleep 1h" for an hour. The FreeBSD one's manpage leads me to believe we can only use seconds, which is kind of annoying. Is t