Geeks With Blogs

David Christiansen | January 2011 Entries
LogParser–Graphing PING results
Here is a nifty little example of how to pipe console output to Microsoft LogParser, in this case the results of a ping against Google. ping -n 15 | "%pathTologparser%\LogParser" "SELECT TO_INT(REPLACE_STR(EXTRACT_... (Text,'time',' '),'ms','')) AS Response INTO Ping.gif FROM stdin WHERE Text LIKE '%%Reply%%' GROUP BY Response" -i textline -legend off -chartTitle "Ping Times" -view Note: I have inserted line breaks for readability, this should be written as one line. Replace %pathTologparser% ......

Posted On Tuesday, January 25, 2011 9:33 AM

FIX: nHibernate/log4net in windows service. FileNotFoundException
When using nHibernate in a windows service you may find that you encounter FileNotFoundExceptions when trying to load assemblies or external configuration files. Typically this is in scenarios where you are running your service under a user context such as NetworkService. If you hunt around long enough you will find that it is trying to locate said files in the %WINDIR%\system32 folder (for example c:\windows\system32), and not from the services own directory. By default window services set the default ......

Posted On Thursday, January 20, 2011 2:51 PM

Copyright © David Christiansen | Powered by: