Archive for October, 2009

Adding a startup script to your linux system to run at reboot or startup

Tuesday, October 27th, 2009

This is probably what most Linux administrators would say is very easy or one of the simplest things to preform. I manage to have to back and look it up every time so I thought it would be helpful to someone to post it. So here it is in all its glory. Type in echo '/path/to/startup/script.sh start' >> /etc/rc.local If you have better or other ways of accomplishing the same please share.

Popularity: 6% [?]

Windows batch file to check if a file has changed and if it has do something

Saturday, October 24th, 2009

Archived; click post to view.
Excerpt: I needed a Windows batch file to check if a file has changed and if it has do something. What I was trying to accomplish is I have a file written to the c:\ drive by a web application as users interact with it. It rewrites the file every couple of minutes or so. When the file is rewritten I want it to display the content to the window or log it into a file. I didn’t want to display it or log it unless the info has actually changed. Here was some advice I got You can check if a file has…

Popularity: 10% [?]