Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Killing tasks...: (7 Items)
   
Killing tasks...  
Is there any way to automate the killing of tasks wich has more then 30 minutos idle, for example, on QNX 4 ?
I think that I can make an script that execute with cron, but I don´t know if there are any commands to do this.
I really appreciate any help.
Victor.
Re: Killing tasks...  
Hi Victor,

There is no special utility that kills tasks which inactive for some time. Try to use awk to parse who utility output.

Respectfully,
Oleg

17 мая 2017 г., в 22:25:33, Victor Gamboa <community-noreply@qnx.com> написал:

> Is there any way to automate the killing of tasks wich has more then 30 minutos idle, for example, on QNX 4 ?
> I think that I can make an script that execute with cron, but I don´t know if there are any commands to do this.
> I really appreciate any help.
> Victor.
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post117739
> To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com

Re: Killing tasks...  
Thanks Oleg, I will try with awk.
Re: Killing tasks...  
Do you have any awk script example to guide me ?
Thanks in advance for your help.

Víctor.
Re: Killing tasks...  
Hi Victor,

You can find awk overview and some samples in QNX 4 Help:

Contents / QNX 4.25 / Utilities Reference / A / awk

Also there are a lot of examples in the Internet. You can start from here:

https://en.wikipedia.org/wiki/AWK

Respectfully,
Oleg

19 мая 2017 г., в 2:21:24, Victor Gamboa <community-noreply@qnx.com> написал:

> Do you have any awk script example to guide me ?
> Thanks in advance for your help.
> 
> Víctor.
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post117746
> To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com

Re: Killing tasks...  
Thanks Oleg. I did the script and it works. 
Best Regards,
Victor.
Re: Killing tasks...  
Hi Victor,

Great! It’s nice to know about this.

Respectfully,
Oleg

23 мая 2017 г., в 1:04, Victor Gamboa <community-noreply@qnx.com> написал:

> Thanks Oleg. I did the script and it works. 
> Best Regards,
> Victor.
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post117755
> To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com