Closed Zazie-Lavender closed 9 years ago
Sounds good! Will you be providing code for it? If you submit a pull request, I'll certainly accept it!
It seems like the command shouldn't rely on such external programs anyway... too bad it's not in Python or I'd quickly submit a PR to fix it :P. Oh well, maybe I can still hack something together.
For my window implementation I just used node's fr to read and loop through the file to find the desired data: https://github.com/Joimer/scripts/blob/master/winmodlog.js
@Joimer is there any reason you haven't committed your Windows implementation? It's probably better than an error message.
Several projects exist in the Win32 environment that allow for use of commands like tail, awk and sort.
http://sourceforge.net/projects/tailforwin32/ http://gnuwin32.sourceforge.net/packages/coreutils.htm http://gnuwin32.sourceforge.net/packages/gawk.htm
Not to mention projects like CygWin which completely emulate a Linux/Unix environment.
http://www.cygwin.com/
I'm reasonably certain that it would be possible to bring /modlog functionality to those running windows based servers.