by nailer · 17y ago · 0 comments
Compare finding processes starting within the last hour on Unix and Windows:
ps | grep 'regex representing the current amount of columns output by ps where start time is less than 2 hours'
Windows (ps is an alias for get-process): ps | where COLUMN <= value
The latter is much more robust. As Powershell gets more cmdlets it's going to become increasingly useful. That said, I prefer Unix for other reasons.I kind of hope most Unix variants follow the /proc filesystem model of Linux. It basically cleans up these kinds of queries considerably.