<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LosByers- Interesting Musings Helpful Hints from a Unix System Administrator &#187; Windows</title>
	<atom:link href="http://losbyers.com/wordpress/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://losbyers.com/wordpress</link>
	<description>All the info I need</description>
	<lastBuildDate>Fri, 30 Mar 2012 15:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Multiple Powerpoint or Excel Windows</title>
		<link>http://losbyers.com/wordpress/2012/03/multiple-powerpoint-or-excel-windows/</link>
		<comments>http://losbyers.com/wordpress/2012/03/multiple-powerpoint-or-excel-windows/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 15:56:22 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Powerpoint]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=277</guid>
		<description><![CDATA[<p>Have you ever wanted more than one window open for PowerPoint or Excel? Say you want to be able to compare 2 charts or presentations side-by-side.  I have a system with 2 monitors and it would be very helpful to be able to have 2 windows.</p> <p>Most of the online help says to open the [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted more than one window open for PowerPoint or Excel? Say you want to be able to compare 2 charts or presentations side-by-side.  I have a system with 2 monitors and it would be very helpful to be able to have 2 windows.</p>
<p>Most of the online help says to open the documents.  You then see them listed on the task bar, but toggling between the documents just places them in the same window.</p>
<p>The first solution you will find is to just go to the View tab and select &#8220;Cascade&#8221;, for office 2007+.  This action will place the documents where you can see them both, but they are in the same window.  This still makes it hard to see both items at the same time.  You have to move things around, or shrink them down to sit side-by-side or up-and-down.  Not really what you want, but it works.</p>
<p>I did figure out a way to have 2 separate windows open at the same time.</p>
<p><strong>1)</strong> Open the first document normally.  It would be easier if this is the document that you are editing or working with the most.</p>
<p><strong>2)</strong> Start a Command prompt by typing &#8220;cmd&#8221; in the Start/run menu or search menu.</p>
<p><strong>3)</strong> Figure out what time it is now by typing &#8220;time&#8221; at the command prompt.<br />
C:\&gt;time<br />
The current time is:  9:34:42.83<br />
Enter the new time:  &lt;<em>just press enter</em>&gt;</p>
<p><strong>4)</strong> Start a new command window in a minute or so from the time shown, I went for 9:36.<br />
C:\&gt;  at 9:36 /interactive cmd.exe</p>
<p><strong>5)</strong> Wait the minute or so for the new cmd window to come up and then manually start Excel or PowerPoint.  Remember to use the new cmd window, not the old.  Also, use quotes around the full path to the command.<br />
C:\WINDOWS\system32&gt; <strong>&#8220;c:\program files\microsoft office\office12\POWERPNT.EXE&#8221;</strong></p>
<p>You can now navigate to the other document that you need and open it in the newly launched application.  Now stare and compare to your hearts content.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2012%2F03%2Fmultiple-powerpoint-or-excel-windows%2F&amp;title=Multiple%20Powerpoint%20or%20Excel%20Windows" id="wpa2a_2"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2012/03/multiple-powerpoint-or-excel-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grep command for Windows</title>
		<link>http://losbyers.com/wordpress/2012/03/grep-command-for-windows/</link>
		<comments>http://losbyers.com/wordpress/2012/03/grep-command-for-windows/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 19:50:23 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=275</guid>
		<description><![CDATA[<p>Something that I have needed for a while while working with Windows.  Most of the systems I have include cygwin so  until now I had not really needed a windows grep equivalent.</p> <p>The built in windows command FindStr mirrors the capabilities of the Unix command Grep.</p> <p>Findstr /? FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [...]]]></description>
			<content:encoded><![CDATA[<p>Something that I have needed for a while while working with Windows.  Most of the systems I have include cygwin so  until now I had not really needed a windows grep equivalent.</p>
<p>The built in windows command <strong>FindStr </strong>mirrors the capabilities of the Unix command <strong>Grep</strong>.</p>
<p><strong>Findstr /?</strong><br />
FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file]<br />
[/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]<br />
strings [[drive:][path]filename[ ...]]<br />
/B         Matches pattern if at the beginning of a line.<br />
/E         Matches pattern if at the end of a line.<br />
/L         Uses search strings literally.<br />
/R         Uses search strings as regular expressions.<br />
/S         Searches for matching files in the current directory and all<br />
subdirectories.<br />
/I         Specifies that the search is not to be case-sensitive.<br />
/X         Prints lines that match exactly.<br />
/V         Prints only lines that do not contain a match.<br />
/N         Prints the line number before each line that matches.<br />
<strong> /M  </strong>       Prints only the filename if a file contains a match.  Same as &#8220;grep -l&#8221;<br />
/O         Prints character offset before each matching line.<br />
/P         Skip files with non-printable characters.<br />
/OFF[LINE] Do not skip files with offline attribute set.<br />
/A:attr    Specifies color attribute with two hex digits. See “color /?”<br />
/F:file    Reads file list from the specified file(/ stands for console).<br />
/C:string  Uses specified string as a literal search string.<br />
/G:file    Gets search strings from the specified file(/ stands for console).<br />
/D:dir     Search a semicolon delimited list of directories<br />
strings    Text to be searched for.<br />
[drive:][path]filename Specifies a file or files to search.</p>
<p>Example of using Findstr to search for multiple strings in succession within a log file.<br />
<strong>findstr “ERROR Caused Fail” c:logslog.log</strong></p>
<p>This command will search for the String ERROR then Caused, and Fail while parsing down a file. So if the file looked like this:<br />
Line1: Error Script Failed<br />
Line2: test1<br />
Line4: Caused by process down<br />
Line5: test2<br />
Line6: Error2</p>
<p>The FindStr output would look like this:<br />
Error Script Failed<br />
Caused by Process down<br />
Error2</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2012%2F03%2Fgrep-command-for-windows%2F&amp;title=Grep%20command%20for%20Windows" id="wpa2a_4"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2012/03/grep-command-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add BAT scripts to Windows Startup</title>
		<link>http://losbyers.com/wordpress/2011/11/add-bat-scripts-to-windows-startup/</link>
		<comments>http://losbyers.com/wordpress/2011/11/add-bat-scripts-to-windows-startup/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 18:10:26 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=261</guid>
		<description><![CDATA[<p>Boy I really miss Unix sometimes.  Things that are so super easy in Unix/Linux are often a total pain in the butt in the Windows world.</p> <p>I needed a script to gracefully shutdown and startup an application when the server was rebooted.  Again, not an issue so much with linux as you almost never HAVE [...]]]></description>
			<content:encoded><![CDATA[<p>Boy I really miss Unix sometimes.  Things that are so super easy in Unix/Linux are often a total pain in the butt in the Windows world.</p>
<p>I needed a script to gracefully shutdown and startup an application when the server was rebooted.  Again, not an issue so much with linux as you almost never HAVE to reboot. Windows you reboot like you catch a cold.  &#8220;oh you are not feeling well? Reboot twice and call me in the morning.&#8221;  Plus windows systems like to reboot every time there is any sort of patching going on.  So I needed to be able to have a custom script run to stop and start an application.</p>
<p>A startup script is a quick and easy way of getting a process running when the machine boots. The computer startup process will be affected by the time it takes to run the program, though, so you might want to ensure you call it with the START command from a batch file, or specifying not to wait for the executable to complete from whatever script language you use. (the key point there is: run the script asynchronously unless it&#8217;s critical, or doesn&#8217;t need to be run asynchronously cos it will always take no time at all. Long boots = unhappy users).</p>
<p>In Windows XP/2003 you will need to use the group policy editor which can be found under <strong>Start / Run / GPEDIT.MSC.</strong>    You will then need to navigate to Computer Settings -&gt; Windows Settings -&gt; Scripts (Startup/Shutdown) or something similar to be able to set a startup script.  You can see the scripts outlined in the scripts.ini file or add your own scripts to the Startup/Shutdown directories found under: C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\</p>
<p>Using a Win32 Service is an alternative option &#8211; you can use the <strong>SRVANY</strong> utility from the Resource Kit to &#8220;service-ify&#8221; pretty much any executable. VS .Net and later also let you build a managed service directly.</p>
<p>And <strong>Task Scheduler gets much more capable as of Vista/2008</strong>, able to run scripts at startup, on idle, when certain other conditions are met; it&#8217;s pretty cool. Task scheduler has the possible advantage of being able to specify the user account under which the task runs, if that&#8217;s important to you.</p>
<p>I hope this little tid-but of information can be helpful to those that need this sort of thing.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2011%2F11%2Fadd-bat-scripts-to-windows-startup%2F&amp;title=Add%20BAT%20scripts%20to%20Windows%20Startup" id="wpa2a_6"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2011/11/add-bat-scripts-to-windows-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Links in Windows</title>
		<link>http://losbyers.com/wordpress/2011/07/creating-links-in-windows/</link>
		<comments>http://losbyers.com/wordpress/2011/07/creating-links-in-windows/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 16:29:12 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=252</guid>
		<description><![CDATA[<p>Thought I would throw out some information on creating links in Windows now that this is the second time I had to go and look the information up.</p> <p>First, there is the &#8220;SUBST&#8221; command.  This command comes with the OS.  Of course I am talking XP and Windows 2003.  I would assume it&#8217;s still available [...]]]></description>
			<content:encoded><![CDATA[<p>Thought I would throw out some information on creating links in Windows now that this is the second time I had to go and look the information up.</p>
<p>First, there is the &#8220;SUBST&#8221; command.  This command comes with the OS.  Of course I am talking XP and Windows 2003.  I would assume it&#8217;s still available in the latest releases.  This command will let you create a Drive Letter out of a directory.</p>
<blockquote><p>subst M: /d<br />
subst M:  C:\music</p></blockquote>
<p>The first line deletes the reference to the M: drive, just to make things clean.<br />
The 2nd line create an M drive that actually links back to C:\Music on the hard drive.  Not sure how handy this can be.   It could find a way to be used to say copy a DVD to the harddrive, then create a drive letter so the application can find the DVD info. Sort of spoofing a DVD drive if needed.  I haven&#8217;t tried it, but that&#8217;s about all I can think of what it could be used for at the moment.</p>
<p>The next handy linker item I stumbled upon is a little executable called LinkD.exe .  This little gem will allow you to create hardlinks like Unix on your PC.  The executible is part of the old 2000 Resource kit, so not sure on how it acts on Vista or above.</p>
<p>I found just the executable <a title="lind.exe download" href="http://www.dynawell.com/download/reskit/microsoft/win2000/linkd.zip">here </a>without having to download the whole resource kit.</p>
<p>To free up some space on my C: drive, I copied everything from <span style="font-family: courier new;">C:\WINDOWS\Installer</span> to <span style="font-family: courier new;">H:\WIN_FILES\Installer</span>.  However, Windows  expects to find the Installer files on C:.  To allow Windows to find the needed  files, I used <span style="font-family: courier new;">LINKD.EXE</span> to point  <span style="font-family: courier new;">C:\WINDOWS\Installer</span> to <span style="font-family: courier new;">H:\WIN_FILES\Installer</span>. The actual  command to do this is:</p>
<p><span style="font-family: courier new;">LINKD.EXE  &#8220;C:\WINDOWS\Installer&#8221; &#8220;H:\WIN_FILES\Installer&#8221;</span></p>
<p>That&#8217;s it! All my  files moved to another physical drive without any problems.</p>
<p>* Note that  the order of the command args is different than the Unix <span style="font-family: courier new;">ln</span> command.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2011%2F07%2Fcreating-links-in-windows%2F&amp;title=Creating%20Links%20in%20Windows" id="wpa2a_8"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2011/07/creating-links-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DOS commands / Batch file scripting</title>
		<link>http://losbyers.com/wordpress/2010/07/dos-commands-batch-file-scripting/</link>
		<comments>http://losbyers.com/wordpress/2010/07/dos-commands-batch-file-scripting/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 15:14:35 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=193</guid>
		<description><![CDATA[<p>I hate to admit on a Unix admin type Blog that I have been recently forced to work in the Windows OS world.</p> <p>Thankfully I have been able to place Cygwin on most of the systems that I support.</p> <p>I have, however, needed to be able to create a few batch files that would run [...]]]></description>
			<content:encoded><![CDATA[<p>I hate to admit on a Unix admin type Blog that I have been recently forced to work in the Windows OS world.</p>
<p>Thankfully I have been able to place Cygwin on most of the systems that I support.</p>
<p>I have, however, needed to be able to create a few batch files that would run on a scheduled basis for various things and had to learn the tricks of the trade for working in the DOS command prompt.</p>
<p><strong>Personal Cheat Sheet.</strong></p>
<p style="padding-left: 30px;">: &#8212; (followed by a space), alternative for &#8220;rem&#8221;, starts a comment<br />
^ &#8212; line continuation&#8230;  like a backslash (\) at the end of the line in unix<br />
&amp; &#8212; command separator (cmd1&amp;  cmd2&amp;  cmd3), like &#8220;;&#8221; in unix<br />
&amp;&amp; &#8212; only execute the next statement if the last one succeeded, like unix/perl<br />
||  &#8212;  only execute the next statement if the last one failed, like unix/perl</p>
<ul>
<li>Passing in command line variables/parameters</li>
</ul>
<p style="padding-left: 30px;">Batch files can only handle parameters %0 to %9, ie cmd.bat Foo Bar where in the cmd.bat Foo=%1 and Bar = %2</p>
<ul>
<li>For Loops</li>
<li>FOR %A IN (<em>list</em>) DO <em>command</em> [ <em>parameters</em> ]</li>
</ul>
<pre><code>
I did find <a title="RobVanderwoude Scripting site" href="http://www.robvanderwoude.com/" target="_blank">this web site</a> has tons of useful information on windows scripts.
The menu at the left will expand to show more info on each topic.

Finding system uptime
* net statistics server

Listing all of your systems drivers</code><code>
* DRIVERQUERY /V /FO CSV &gt; %ComputerName%.csv</code></pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2010%2F07%2Fdos-commands-batch-file-scripting%2F&amp;title=DOS%20commands%20%2F%20Batch%20file%20scripting" id="wpa2a_10"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2010/07/dos-commands-batch-file-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer Ruler (Shift R)</title>
		<link>http://losbyers.com/wordpress/2010/01/internet-explorer-ruler-shift-r/</link>
		<comments>http://losbyers.com/wordpress/2010/01/internet-explorer-ruler-shift-r/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 21:43:32 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=134</guid>
		<description><![CDATA[<p>While browsing the web the other day and I was in the midst of entering a search term when an odd little window unexpectedly popped up. It was titled “Ruler”, and offered some options to check, such as “Snap to X/Y axis” and “Hide Tick marks.”</p> <p>I found that my keyboard was no longer responding, [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: verdana;">While browsing the web the other day and I was in the midst of entering a search term when an odd little window unexpectedly popped up. <img style="margin: 10px; float: right; width: 320px;" src="http://www.pioneervalleysoftware.com/images/blog/ruler.jpg" border="0" alt="renegade ruler" />It was titled “Ruler”, and offered some options to check, such as “Snap to X/Y axis” and “Hide Tick marks.”</span></p>
<p><span style="font-family: verdana;">I found that my keyboard was no longer responding, so I clicked the peculiar popup’s close box and continued typing. All was fine until I had occasion to enter an upper case “R,” then suddenly the strange ruler window popped up again. What the hack was going on?</span><br />
<span style="font-family: verdana;">The ruler box is a feature of the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en">Internet Explorer 7 Developer Toolbar</a> add-on and for some reason is in certain versions of the toolbar and not others for various versions of IE.  Go figure? <img src='http://losbyers.com/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </span></p>
<p><span style="font-family: verdana;">To make the Shift-R ruler &#8220;feature&#8221; go away, I typed</span><span style="font-family: verdana;"> <em>Ctrl-Shift-J </em></span><span style="font-family: verdana;">and the Shift-R now works as it should.  You may need to bring up the Developer Tool Bar before hitting the keys strokes to make the change take effect, </span><span style="font-family: verdana;">by selecting <strong>View | Explorer Bar</strong></span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2010%2F01%2Finternet-explorer-ruler-shift-r%2F&amp;title=Internet%20Explorer%20Ruler%20%28Shift%20R%29" id="wpa2a_12"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2010/01/internet-explorer-ruler-shift-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source Alternatives</title>
		<link>http://losbyers.com/wordpress/2009/12/open-source-alternatives/</link>
		<comments>http://losbyers.com/wordpress/2009/12/open-source-alternatives/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:54:26 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=111</guid>
		<description><![CDATA[<p>There is a ton of software a new business sometimes feels that they must purchase right when they are starting off a new business.</p> <p>There Word, Excel, and Powerpoint from Micro$soft that are usually very expensive.</p> <p>There is also money management software, project planning software, and graphic software.</p> <p>Well there is a solution for small [...]]]></description>
			<content:encoded><![CDATA[<p><span>There is a ton of software a new business sometimes feels that they must purchase right when they are starting off a new business.</p>
<p>There Word, Excel, and Powerpoint from Micro$soft that are usually very expensive.</p>
<p>There is also money management software, project planning software, and graphic software.</p>
<p>Well there is a solution for small businesses that are starting out is to use Open Source Software.<br />
There is a great web site that lists all of the commercial software along with it&#8217;s Open Source Alternative.<br />
Check out <a href="http://www.osalt.com/" target="_blank">Open Source Alternatives web site</a>.</p>
<p>They will show you stuff like<br />
Expensive App             Free Apps<br />
Photoshop                   The GIMP<br />
VISIO                         DIA<br />
MS Office                    Open Office<br />
Illustrator, CorelDraw  Inkscape<br />
Quickbooks                 Postbooks</p>
<p>There are many more and almost every big commercial application now has an Open Source alternative.  It is possible that you may need to be running Linux for some of these, but Ubuntu has become as easy to use as Windows or a Mac.</span></p>
<p><span>I found another Blog posting about 50 top applications and their alternatives.<br />
The post was made early in 2008 so the software most likely has gotten even better since then.</p>
<p>Check out <a href="http://whdb.com/2008/the-top-50-proprietary-programs-that-drive-you-crazy-and-their-open-source-alternatives/" target="_blank">http://whdb.com/2008/the-top-50-proprietary-programs-that-drive-you-crazy-and-their-open-source-alternatives/</a></span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fopen-source-alternatives%2F&amp;title=Open%20Source%20Alternatives" id="wpa2a_14"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/open-source-alternatives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exporting Tomcat SSL keys to Apache httpd</title>
		<link>http://losbyers.com/wordpress/2009/12/exporting-tomcat-ssl-keys-to-apache-httpd/</link>
		<comments>http://losbyers.com/wordpress/2009/12/exporting-tomcat-ssl-keys-to-apache-httpd/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:41:37 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Web Related]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=98</guid>
		<description><![CDATA[<p>Apache Tomcat SSL keys created with keytool are, by default, in der format. These keys cannot be used in Apache httpd since httpd, be default, expects the keys in pem(X509) format. Using the below steps you can export the tomcat&#8217;s keys to Apache httpd format and use it for Apache.</p> <p>I assume that you already [...]]]></description>
			<content:encoded><![CDATA[<p>Apache Tomcat SSL keys created with keytool are, by default, in <strong>der</strong> format. These keys cannot be used in Apache httpd since httpd, be default, expects the keys in <strong>pem(X509)</strong> format. Using the below steps you can export the tomcat&#8217;s keys to Apache httpd format and use it for Apache.</p>
<p>I assume that you already have a working copy of tomcat with SSL.</p>
<p>If Not follow Verisign&#8217;s instructions on requesting an SSL certificate, then:</p>
<ul>
<li>Create a keystore:   $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA</li>
<li>Import the Intermediate CA Certificate:   keytool -import -alias root -keystore &lt;your_keystore_filename&gt; -trustcacerts -file &lt;filename_of_the_chain_certificate&gt;</li>
<li>Import your SSL Certificate:  keytool -import -alias &lt;your_alias&gt; -keystore &lt;your_keystore_filename&gt; -trustcacerts -file &lt;your_certificate_filename&gt;</li>
</ul>
<p>You will need a copy of the tomcat&#8217;s keystore file and the keystore password.</p>
<p>Let us start&#8230;.</p>
<p>First copy the existing tomcat&#8217;s keystore file to a new directory so that we don&#8217;t break anything that is working.</p>
<p>List the key and verify you know the passphrase.<br />
<span style="color: #008000;"><strong># keytool -list -keystore your.key </strong></span></p>
<p>Now we will export the key in DER format<br />
<span style="color: #008000;"><strong># keytool -export -alias tomcat -keystore tomcat.keystore -file exported-der.crt </strong></span><br />
Enter keystore password:<br />
Output will be: Certificate stored in file</p>
<p>The certificate will be stored in the file called exported-der.crt</p>
<p>Verify the certificate with this command:<br />
<span style="color: #008000;"><strong># openssl x509 -noout -text -in exported-der.crt -inform der </strong></span><br />
Output will be: The whole certificate saying &#8211; who issued it  and other info like your company name etc.</p>
<p>Now Convert the key to PEM format so that apache can understand it:<br />
<span style="color: #008000;"><strong># openssl x509 -out exported-pem.crt -outform pem -in exported-der.crt -inform der </strong></span></p>
<p>The exported key will be in the file exported-pem.crt.</p>
<p>We have exported the public key and now are going to export the private key.</p>
<p>Download a  file called (ExportPrivateKey.zip) from <a href="http://www.anandsekar.com/wp-content/uploads/2006/01/ExportPrivateKey.zip" target="_blank">Anandsekar.com</a></p>
<p>Extract the key<br />
<span style="color: #008000;"><strong># java -jar ExportPrivateKey.zip {keystore_path} JKS {keystore_password} {alias} exported-pkcs8.key </strong></span></p>
<p>The key is in PKCS #8 PEM format. Now run openssl to convert it to the format apache modssl expects the file.<br />
Use a cygwin shell to get a good version of OpenSSL without having to install another application.<br />
# openssl pkcs8 -inform PEM -nocrypt -in exported-pkcs8.key -out exported.key</p>
<p>The Private key is now exported to the file exported.key.</p>
<p>Edit the httpd.conf/httpd-ssl.conf file<br />
<span style="color: #000080;">SSLCertificateFile /root/SSL_export/exported-pem.crt  -&gt; I used the cert from Verisign instead.<br />
SSLCertificateKeyFile /root/SSL_export/exported.key<br />
SSLCertificateChainFile /root/SSL_export/&lt;intermediate&gt;</span></p>
<p>Example:<br />
#Verisign Certificate<br />
SSLCertificateFile &#8220;C:/Program Files/Apache Software Foundation/Apache2.2/conf/cmmssl/cert/cert.crt&#8221;<br />
# Our new key<br />
SSLCertificateKeyFile &#8220;C:/Program Files/Apache Software Foundation/Apache2.2/conf/cmmssl/private/exported.key&#8221;<br />
# The Verisign Intermediary cert file.<br />
SSLCertificateChainFile &#8220;C:/Program Files/Apache Software Foundation/Apache2.2/conf/cmmssl/intermediate/intermediate.crt&#8221;</p>
<p>Restart Apache, with fingers crossed, pixie dust in the air, while the rooster crows, on a full moon, and a live sacrificial chicken waiting on standby.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fexporting-tomcat-ssl-keys-to-apache-httpd%2F&amp;title=Exporting%20Tomcat%20SSL%20keys%20to%20Apache%20httpd" id="wpa2a_16"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/exporting-tomcat-ssl-keys-to-apache-httpd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Killing windows processes from the command line</title>
		<link>http://losbyers.com/wordpress/2009/12/killing-windows-processes-from-the-command-line/</link>
		<comments>http://losbyers.com/wordpress/2009/12/killing-windows-processes-from-the-command-line/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:33:33 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=96</guid>
		<description><![CDATA[<p>Use TASKLIST and TASKKILL :  Good web site on this http://commandwindows.com/taskkill.htm</p> <p>(F)orce Kill running processes for ImageName of java.exe taskkill.exe /F /IM java.exe</p> <p>NOTE: Wildcard &#8216;*&#8217; for the /IM switch is accepted only with filters, use /FI taskkill /F /FI &#8220;IMAGENAME eq note*&#8221;</p> <p>Find all running Java processes command line tasklist /FI “IMAGENAME eq java.exe”</p> [...]]]></description>
			<content:encoded><![CDATA[<p><span>Use TASKLIST and TASKKILL :  Good web site on this <a href="http://commandwindows.com/taskkill.htm" target="_blank">http://commandwindows.com/taskkill.htm</a></p>
<p>(F)orce Kill running processes for ImageName of java.exe<br />
taskkill.exe /F /IM java.exe</p>
<p>NOTE: Wildcard &#8216;*&#8217; for the /IM switch is accepted only with filters, use /FI<br />
taskkill /F /FI &#8220;IMAGENAME eq note*&#8221;</p>
<p>Find all running Java processes command line<br />
tasklist /FI “IMAGENAME eq java.exe”</p>
<p>Example:  I started 2 Calculator programs.</p>
<p>H:\&gt;tasklist /FI &#8220;IMAGENAME eq calc*&#8221;</p>
<pre>Image Name                   PID Session Name     Session#    Mem Usage
========================= ====== ================ ======== ============
calc.exe                    4652 Console                 0      3,420 K
calc.exe                    1936 Console                 0      3,412 K
</pre>
<p>H:\&gt;taskkill /F /FI &#8220;IMAGENAME eq calc*&#8221;<br />
SUCCESS: The process with PID 4652 has been terminated.<br />
SUCCESS: The process with PID 1936 has been terminated.</p>
<p>I needed these commands to script a nightly restart of a java application that had a bad memory leak.  For some reason the normal stop wasn&#8217;t working. <img title="Crying or Very sad" src="http://www.losbyers.com/modules/Forums/images/smiles/icon_cry.gif" border="0" alt="Crying or Very sad" /></span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fkilling-windows-processes-from-the-command-line%2F&amp;title=Killing%20windows%20processes%20from%20the%20command%20line" id="wpa2a_18"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/killing-windows-processes-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Scheduled Task Log Output</title>
		<link>http://losbyers.com/wordpress/2009/12/windows-scheduled-task-log-output/</link>
		<comments>http://losbyers.com/wordpress/2009/12/windows-scheduled-task-log-output/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 18:26:35 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Web Related]]></category>
		<category><![CDATA[BAT]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=93</guid>
		<description><![CDATA[<p>I needed to have a script list and kill processes and I needed that script to run out of a scheduled task.</p> <p>It would be nice to know what happened with the script when it runs early in the morning.</p> <p>I found  that if you call the script from the Windows Task Scheduler that you [...]]]></description>
			<content:encoded><![CDATA[<p><span>I needed to have a script list and kill processes and I needed that script to run out of a scheduled task.</span></p>
<p>It would be nice to know what happened with the script when it runs early in the morning.</p>
<p>I found  that if you call the script from the Windows Task Scheduler that you can give the job a few more options.</p>
<p>Change the scheduled tasks to read as<br />
<span style="font-weight: bold;">cmd <span style="font-style: italic;">/C NightlyBatchJob.bat &gt; NightlyBatchJob.output.txt 2&gt;&amp;1</span></span></p>
<p>The output should be placed in the same directory as the script.</p>
<p><span>I also should include the script that stops all of the java processes for Wallstreet systems CMM/TRM application.</span></p>
<p><span><span id="more-93"></span></span></p>
<pre>
<pre>REM Win 2003 systems have the sleep command
REM sleep 40
REM XP systems don't.
REM The ping command times out at 20 seconds, goofy way to create a wait.
REM Comment out either the ping or the sleep depending on which works</pre>
<p>cd \&lt;install_path&gt;\pmm\bin</p>
<p>REM force PMAD/PMSD to start, in case they are not running<br />
net start "Wallstreet Suite - pmad"<br />
net start "Wallstreet Suite - pmsd"</p>
<p>.\pm_cmd admin_account/password@localhost:8887 stop SDM@test1<br />
.\pm_cmd admin_account/password@localhost:8887 stop ACM@test1<br />
.\pm_cmd admin_account/password@localhost:8887 stop websuite_appserver@test1<br />
.\pm_cmd admin_account/password@localhost:8887 stop WebSuite@test1<br />
.\pm_cmd admin_account/password@localhost:8887 stop cmm_tcmd_appserver@test1</p>
<p>REM sleep 40<br />
ping 10.10.10.254 &gt; NUL<br />
ping 10.10.10.254 &gt; NUL</p>
<p>.\pm_cmd admin_account/password@localhost:8887 stop TRM@test1</p>
<p>ping 10.10.10.254 &gt; NUL<br />
ping 10.10.10.254 &gt; NUL</p>
<p>.\pm_cmd admin_account/password@localhost:8887 stop messaging@test1<br />
.\pm_cmd admin_account/password@localhost:8887 stop active_mq@test1<br />
.\pm_cmd admin_account/password@localhost:8887 stop trm_mdsd@test1<br />
.\pm_cmd admin_account/password@localhost:8887 stop omninames@test1</p>
<p>REM Only stop  pmad/pmsd if really necessary<br />
REM net stop "Wallstreet Suite - pmsd"<br />
REM net stop "Wallstreet Suite - pmad"</p>
<p>REM sleep 20<br />
ping 10.10.10.254 &gt; NUL</p>
<p>REM Display processes status if needed<br />
.\pm_cmd admin_account/password@localhost:8887 proc</p>
<p>REM sleep 40<br />
ping 10.10.10.254 &gt; NUL<br />
ping 10.10.10.254 &gt; NUL</p>
<p>REM Make sure everything is down by killing any hung processes.<br />
.\pm_cmd admin_account/password@localhost:8887 kill WALLSTREET_SUITE@test1</p>
<p>REM sleep 40<br />
ping 10.10.10.254 &gt; NUL<br />
ping 10.10.10.254 &gt; NUL<br />
REM List out the remaining running tasks owned by SYSTEM<br />
tasklist /S localhost /U SYSTEM<br />
REM Kill any left over java processes. NOTE: will kill ALL JAVA processes on the system<br />
taskkill /F /FI "IMAGENAME eq java*"</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fwindows-scheduled-task-log-output%2F&amp;title=Windows%20Scheduled%20Task%20Log%20Output" id="wpa2a_20"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/windows-scheduled-task-log-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

