I hate to admit on a Unix admin type Blog that I have been recently forced to work in the Windows OS world.
Thankfully I have been able to place Cygwin on most of the systems that I support.
I have, however, needed to be able to create a few batch files that would run on a [...]
My journey on setting up a Media Center PC on a Acer Aspire 1600.
Tigerdirect had a great sale on the units so I purchased one and a Gyrus Universal Media Center Remote.
From some message boards I read up on I also purchased the extra 1GB of ram for the Acer, so that 1080p video would [...]
Notepad++ has become my favorite editor when coding PHP or XML. It just has so many useful little features. You can have all of the documents you need opened in one window and separated with tabs. You can have a 2nd workspace hidden within the same window, which is great when you [...]
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.”
I found that my keyboard was no longer responding, so [...]
There is a ton of software a new business sometimes feels that they must purchase right when they are starting off a new business.
There Word, Excel, and Powerpoint from Micro$soft that are usually very expensive.
There is also money management software, project planning software, and graphic software.
Well there is a solution for small businesses that are [...]
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’s keys to Apache httpd format and use it for Apache.
I assume that you already have [...]
Use TASKLIST and TASKKILL : Good web site on this http://commandwindows.com/taskkill.htm
(F)orce Kill running processes for ImageName of java.exe
taskkill.exe /F /IM java.exe
NOTE: Wildcard ‘*’ for the /IM switch is accepted only with filters, use /FI
taskkill /F /FI “IMAGENAME eq note*”
Find all running Java processes command line
tasklist /FI “IMAGENAME eq java.exe”
Example: I started 2 Calculator programs.
H:\>tasklist /FI [...]
I needed to do a little research on how timestamps work in Winders, XP and 2003 server.
Creation date later than modified date (”date modified” less than “date created”)
In Word XP the creation date of a document can be later than the modified date when saved elsewhere. Microsoft says
“When the document is copied or is saved [...]
I started out with the need to be able to launch a putty SSH window from Excel that had a list of hosts and/or IP addresses.
In Microsoft Excel
1) View/Toolbars Visual Basic
2) Click the Control Toolbox icon
3) Click on the Command Button icon and then click in your worksheet or drag the icon symbol.
4) Right click [...]
So you want to change some text in many unix files.
Try the following.
perl -pi -e ’s/find/replace/g’ *.txt
or to script it out.
Find the TEXT in regular files and replace with NEWTEXT
for file in `find ./ -type f -exec grep -l TEXT {} \;`
do
perl -pi -e ’s/TEXT/NEWTEXT/g’ $file
done