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, which

Re: BSD sleep

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

Re: BSD sleep

2013-05-29 Thread Arthur Chance
On 05/29/13 05:59, Michael Sierchio wrote: On Tue, May 28, 2013 at 4:45 PM, Joshua Isom jri...@gmail.com wrote: You think it's trivial until you read this: http://infiniteundo.com/post/**25326999628/falsehoods-**

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,

Re: BSD sleep

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

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, and do

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 Paul Kraus
On May 29, 2013, at 7:58 AM, Jason Birch jbi...@jbirch.net wrote: 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

Re: BSD sleep

2013-05-29 Thread RW
On Wed, 29 May 2013 12:04:47 +0100 Chris Rees wrote: On 29 May 2013 07:13, Matthew Seaman matt...@freebsd.org wrote: Right. The fact that on very rare occasions a minute may not have 60 seconds in it plus many other corner cases in calculating the current wall-clock time is an amusing

Re: BSD sleep

2013-05-29 Thread RW
On Wed, 29 May 2013 10:01:53 -0400 Paul Kraus wrote: Agreed. When I first started dealing with Unix professionally (1995, I started playing with Unix-like OSes almost 10 years earlier) I was taught that each Unix command does one thing and does it well. It would still just be doing one thing

Re: BSD sleep

2013-05-29 Thread Modulok
I'm personally a fan of a forest-green bike shed myself... It would still just be doing one thing - sleeping. I agree. Perfect solution fallacy aside, a sleep option with basic time increments would be useful for real-world purposes. I'm in favor of computing it as a multiple of seconds as

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 kind of

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 there

Re: BSD sleep

2013-05-28 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 sleep

Re: BSD sleep

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