Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Killing processes: (3 Items)
   
Killing processes  
When I used who, I got a list of user who are logged in like this:
Userid              Device           Login                  Idle        Command
americas2      //1/dev/ttyp1    Mar 13 19:56   1:31:51 vpg4
playa              //1/dev/ttyp2    Mar 13 19:45    1:40:15 vpg4
CALLE60      //1/dev/ttyp3    Mar 13 19:56    1:33:41 vpg4

and I can kill the process with long idle time like this:

slay -t /dev/ttyp1 vpg4

How can I kiil all processes with 1 hour idle time for example ?

I thank you in advance for any help on this.

Victor


Re: Killing processes  
If I could configure the telnet sessions to keep alive, I solve the situation, so another aproach could be telnet 
configuration to maintain alive the sessions. Any ideas ?
Thanks for the help.
Victor.
Re: Killing processes  
Hi Victor,

I guess you can use awk or sed to check idle time.

Respectfully,
Oleg

14 марта 2017 г., в 5:39:12, Victor Gamboa <community-noreply@qnx.com> написал:

> When I used who, I got a list of user who are logged in like this:
> Userid              Device           Login                  Idle        Command
> americas2      //1/dev/ttyp1    Mar 13 19:56   1:31:51 vpg4
> playa              //1/dev/ttyp2    Mar 13 19:45    1:40:15 vpg4
> CALLE60      //1/dev/ttyp3    Mar 13 19:56    1:33:41 vpg4
> 
> and I can kill the process with long idle time like this:
> 
> slay -t /dev/ttyp1 vpg4
> 
> How can I kiil all processes with 1 hour idle time for example ?
> 
> I thank you in advance for any help on this.
> 
> Victor
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post117533
> To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com