View Single Post
  #2   (View Single Post)  
Old 9th May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203

Hmm... now that I've had a chance to play around with it more, there's a few things that can be changed.

For example, the line above that reads
for i in `jls | grep -v "JID" | awk '{print $3}'`
...can be changed to...
for i in `jls | awk '$1 !~ /JID/ {print $3}'`
jexec -U root `jls | grep $i | awk '{print $1}'` /usr/sbin/pkg_version -v -L '='
...can be...
jexec -U root `jls | awk '$3 ~ /'$i'/ {print $1}'` /usr/sbin/pkg_version -v -L '='
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!

Last edited by cajunman4life; 9th May 2008 at 11:52 PM. Reason: Typo
Reply With Quote