Computing.Net > Forums > Programming > How to kill processes older than x

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

How to kill processes older than x

Reply to Message Icon

Name: alcalina
Date: March 2, 2009 at 13:53:21 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

Hi!!
I´m looking for some specific process.
But I´m stuck in the middle

The code will be something like this

a)who -u | cat | cut -d : -f1,4

( get the name of user and time idle
more than 2 hours and the type of the
program)

b) ps -ef | grep ( users) | grep ERP.db

kill the programs find in the privous line
and line a.
Because I can have more than one
instance and I need to kill only instance
with more than one our




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Input Percentage! extracting data from repo...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How to kill processes older than x

How to get files older than 15 days www.computing.net/answers/programming/how-to-get-files-older-than-15-days-/19765.html

Delete Files in a directory older than X days www.computing.net/answers/programming/delete-files-in-a-directory-older-than-x-days/19781.html

VB.net : How to check process www.computing.net/answers/programming/vbnet-how-to-check-process/16813.html