topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 6:22 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: NANY 2010 Final Release: FARR Plugin ProcessInfo  (Read 30487 times)

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
NANY 2010 Final Release: FARR Plugin ProcessInfo
« on: December 11, 2009, 08:23 PM »
NANY 2010 Entry Information

Application Name FARR Plugin ProcessInfo
Version 1.1.0
Short Description A FindAndRunRobot plugin to display information about running processes
Supported OSes Windows
System Requirements
  • FARR 2.80.02 recommended (for use with latest FScript)
Version History
  • 1.1.0:  Bug fixes by mouser, including showing all processes and adding icons for many processes that didn't show them
  • 1.0.1:  Bug fix
  • 1.0.0:  Release!
  • 0.9.0:  pre-release
  • 0.0.5:  alpha testing
Website:
Author Jonathan Prater
Screencast


Description
I'm a sysadmin by trade, and I frequently need to get quick information about processes running on a machine (either my own or a remote PC).  I also frequently need to know what files the process is actually using at any given moment.  And I don't necessarily want to have to access the machine directly to get that information.
While there are tools already available that give me that information, none of them are particularly fast about giving it to me, and none of the are as intutive as a FARR alias/plugin could be. :) So I wrote this to be the fast, simple tool that I as an admin need to get information quickly.

Current Features
- It queries processes matching a specified partial name, then lists them out by name and ID.
- Upon selection of a specific process, it returns more detailed information, including memory used, count of handles open, and paths to actual files.

Planned Features
- Access to processes on remote computers.

Screencast


Screenshots
Initially, the user types in pinfo...
ProcessInfo1.pngNANY 2010 Final Release:  FARR Plugin ProcessInfo
As the user enters more characters, ProcessInfo tightens down on the processes that match what was entered.  The results list looks like this:
ProcessInfo2.pngNANY 2010 Final Release:  FARR Plugin ProcessInfo
Upon selecting the desired target process, the user gets something like this:
ProcessInfo3.pngNANY 2010 Final Release:  FARR Plugin ProcessInfo

Installing this application:
Make sure you've got FARR installed ;), then download the plugin file (attached below) and unpack it to a subdirectory of $FARR_Install\Plugins.
Toggle FARR and type rplugins, then click OK.  One of the plugins in your list should be ProcessInfo, with an alias of pinfo.

Usage:
pinfo processname.  Hit enter on a process you want to see details for.  To see all processes, just type pinfo followed by a space.
To query remote computers: pinfo c=computername processname.

Uninstalling:
Toggle FARR and type rplugins.  Before clicking OK, delete the directory $FARR_Install\Plugins\$ProcessInfo, where $ProcessInfo is the directory you originally unpacked the plugin to.[/list]
« Last Edit: January 01, 2010, 08:56 PM by Perry Mowbray »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: NANY 2010 TEASER: FARR Plugin ProcessInfo
« Reply #1 on: December 11, 2009, 08:33 PM »
Great to see a FARR plugin entry  :Thmbsup:

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 TEASER: FARR Plugin ProcessInfo
« Reply #2 on: December 11, 2009, 09:00 PM »
:D Thank you for your help getting it working in the first place!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: NANY 2010 TEASER: FARR Plugin ProcessInfo
« Reply #3 on: December 11, 2009, 09:16 PM »
you might consider trying to show and filter results live.. that is, always return to farr the complete list of processes running and let FARR filter them to match what user types.

i'm just impressed that you are grabbing this info using javascript!  that's pretty damn cool.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: NANY 2010 TEASER: FARR Plugin ProcessInfo
« Reply #4 on: December 12, 2009, 05:29 AM »
Wow...very cool.  Nice job.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: NANY 2010 TEASER: FARR Plugin ProcessInfo
« Reply #5 on: December 12, 2009, 09:03 PM »
very nice, will complement another Farr plugin - Pkill. :up:

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 TEASER: FARR Plugin ProcessInfo
« Reply #6 on: December 12, 2009, 10:12 PM »
you might consider trying to show and filter results live.. that is, always return to farr the complete list of processes running and let FARR filter them to match what user types.
i'm just impressed that you are grabbing this info using javascript!  that's pretty damn cool.
:D Thanks.  I'm using WMI to retrieve it (using the SWbemServices interface, which plays well with anything that works with COM; I could've written this plugin using python, too :)).
And I already do filter results live, following a previous suggestion from you.  Taking out the alias makes sense, though.  For the detail display, though, I need the memo mode to display everything coherently.
« Last Edit: December 12, 2009, 10:21 PM by jpprater »

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 PRE-RELEASE: FARR Plugin ProcessInfo
« Reply #7 on: December 13, 2009, 02:15 PM »
Updated to pre-release status!  :Thmbsup:

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #8 on: December 16, 2009, 02:03 PM »
Released!  8) :up:

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #9 on: December 16, 2009, 02:12 PM »
Very nice piece of work!

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #10 on: December 16, 2009, 02:16 PM »
Nice, this will come in handy!

A couple of initial remarks: Am I supposed to press Space after 'pinfo'? I would've thought that just typing 'pinfo' would be enough... (I suppose this might be possible if I change an alias setting in FARR, though)
And +sall modifier doesn't work, so I only get a short list and need to know what I'm looking for. support for +sall or an option to display full list of processes would be very nice.

Great stuff! :Thmbsup:

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #11 on: December 16, 2009, 02:39 PM »
Nice, this will come in handy!

A couple of initial remarks: Am I supposed to press Space after 'pinfo'? I would've thought that just typing 'pinfo' would be enough... (I suppose this might be possible if I change an alias setting in FARR, though)
And +sall modifier doesn't work, so I only get a short list and need to know what I'm looking for. support for +sall or an option to display full list of processes would be very nice.

Great stuff! :Thmbsup:
Thanks, glad you like it. :)
Yes, you need a space after pinfo to make it start searching.
I'll add support for +sall to my issue list.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #12 on: December 16, 2009, 05:26 PM »
a note, you can return the full path of the exe as the icon file and farr should load the appropriate icon from the file.. i think.

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #13 on: December 16, 2009, 06:42 PM »
a note, you can return the full path of the exe as the icon file and farr should load the appropriate icon from the file.. i think.
That's if the full path can be captured in the first place.  :huh:
Not all processes appear to store their paths in a readable form in the WMI repository.  (See here)  And of course, for remote machines, if the process' executable doesn't exist in the same place on the local machine, I can't very well detect its icon, unless I can pull some gyrations with grabbing it from the executable on the remote machine itself.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #14 on: December 16, 2009, 06:45 PM »
fair enough.. you could add a few generic icons inside your plugin directory and return those, just so the space wasn't blank.
that actually makes me think i should add some generic icons in with farr that can be used by plugins as placeholders.

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #15 on: December 16, 2009, 07:15 PM »
Yeah, that makes sense.
The issue I just mentioned above has been fixed (some processes failing to display details due to not all fields being populated).  I'll start a new feature issue for icons.  I can find a generic icon from the OS that will be suitable (I think :)).

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #16 on: December 16, 2009, 08:53 PM »
OK, I have a suitable icon, but here's the problem:  Not every process that I can get a path to has its own icon.  I'm thinking maybe I should just go with the standard generic icon, unless someone knows how to check for the presence of icons built into executables programmatically...  Any opinions either way?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #17 on: December 16, 2009, 09:52 PM »
what happens when you give farr an executable path that doesnt have an icon? is it just blank space? maybe i can fix farr to show a better default in that case.

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #18 on: December 17, 2009, 04:21 AM »
Yup.  Although, if I type that executable's path directly into the search field, it shows the icon that Explorer displays for that executable w/out issue.  Perhaps its simply that explorer is intelligent about assigning icons automatically, whereas FARR isn't and usually doesn't have to be.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #19 on: December 17, 2009, 11:38 AM »
should be same effect -- send me the plugin where you give farr the exe paths as icon paths and ill investigate why farr might show a blank ([email protected]).

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 RELEASE: FARR Plugin ProcessInfo
« Reply #20 on: December 17, 2009, 02:15 PM »
should be same effect -- send me the plugin where you give farr the exe paths as icon paths and ill investigate why farr might show a blank ([email protected]).
Sent.  Good luck!  :up:

jpprater

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: NANY 2010 Final Release: FARR Plugin ProcessInfo
« Reply #21 on: December 31, 2009, 03:04 PM »
Final Release status!  :eusa_dance:
Edit:   :o Dude, mouser just slipped me a major bugfix!  Latest version is out on the Redmine project, and it includes showing all processes, as well as showing icons for some processes that wouldn't show them previously.   :mrgreen:  Props to the mouseman!!  :beerchug:
« Last Edit: December 31, 2009, 06:16 PM by jpprater »