Kill proccess after some time

Posted by yael on Super User See other posts from Super User or by yael
Published on 2010-06-17T15:24:57Z Indexed on 2010/06/17 15:33 UTC
Read the original article Hit count: 546

Filed under:

I want to limit the time of grep process command

For example

If I perform:

grep -qsRw -m1 "parameter" /var

before running grep command I want to limit the grep process to alive not longer then 30 seconds

how to do this?

and if it can be how to return the no limit time again

Yael

© Super User or respective owner

Kill proccess after some time

Posted by yael on Stack Overflow See other posts from Stack Overflow or by yael
Published on 2010-06-17T15:20:12Z Indexed on 2010/06/17 15:23 UTC
Read the original article Hit count: 546

Filed under:

I want to limit the time of grep process command

For example

If I perform:

grep -qsRw -m1 "parameter" /var

before running grep command I want to limit the grep process to alive not longer then 30 seconds

how to do this?

and if it can be how to return the no limit time again

Yael

© Stack Overflow or respective owner

Kill proccess after some time

Posted by yael on Super User See other posts from Super User or by yael
Published on 2010-06-17T15:20:12Z Indexed on 2010/06/17 16:13 UTC
Read the original article Hit count: 544

Filed under:

I want to limit the time of grep process command

For example

If I perform:

grep -qsRw -m1 "parameter" /var

before running grep command I want to limit the grep process to alive not longer then 30 seconds

how to do this?

and if it can be how to return the no limit time again

Yael

© Super User or respective owner

Related posts about linux