timeout(1) on OpenBSD

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

timeout(1) on OpenBSD

drozdow
There is no timeout(1) on OpenBSD, any alternatives?
Best regards,
Hubert
Reply | Threaded
Open this post in threaded view
|

Re: timeout(1) on OpenBSD

Ingo Schwarze
Hi Hubert,

drozdow wrote on Sat, Jul 13, 2019 at 04:24:55PM +0000:

> There is no timeout(1) on OpenBSD, any alternatives?

Isn't that a trivial one-liner in the shell?

  sleep 1000 & sleep 1; kill $!

Yours,
  Ingo

Reply | Threaded
Open this post in threaded view
|

Re: timeout(1) on OpenBSD

Ibsen S Ripsbusker
In case you prefer the complicated version,

$ pkg_add coreutils
$ alias timeout=gtimeout

On Sat, Jul 13, 2019, at 16:50, Ingo Schwarze wrote:

> Hi Hubert,
>
> drozdow wrote on Sat, Jul 13, 2019 at 04:24:55PM +0000:
>
> > There is no timeout(1) on OpenBSD, any alternatives?
>
> Isn't that a trivial one-liner in the shell?
>
>   sleep 1000 & sleep 1; kill $!
>
> Yours,
>   Ingo
>
>