Results 1 to 3 of 3

Thread: Killall --older-than

  1. #1
    Join Date
    Dec 2008
    Beans
    256

    Killall --older-than

    It's ridiculous that there's no decent documentation on this. After Googling for hours, all I can find is it follows the format s,m,h,d,w,M,y. But typing all those numbers in separated by a comma won't work. How the hell do I kill all processes older than 30 minutes???

    Of course I don't mean ALL processes. Just the ones with a certain name.

  2. #2
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: Killall --older-than

    To kill a recently started multiple instance of a process (leaving the latest one) this works (finally hit the right time format when testing on fusion-icon)

    Code:
    killall --older-than 30m <process-name>
    If you wanted 1 hour 30 minutes it looks like,

    Code:
    killall --older-than 30m,1h <process-name>
    tested this on tomboy notes and it worked as well (tomboy notes only allows one instance so started a new one and tested the command again and it left the newly opened one alone).
    Last edited by yetiman64; October 16th, 2010 at 09:24 AM. Reason: more info added

  3. #3
    Join Date
    Dec 2008
    Beans
    256

    Re: Killall --older-than

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •