Category Archives: Server Development

Sendmail command line to gmail

Sendmail command line to gmail Had a requirement to send an email to myself from a script. Was surprised to find out that it is quite possible and not necessarily 100% intuitive but works.

Posted in Bash Scripting, Server Development | Leave a comment

Lame Scripting Awards

Lame Scripting Awards How many people have been using cat to open files in their shell only to pipe the output to another command, or how many have piped things to wc -l from grep? Don’t understand what I am … Continue reading

Posted in Bash Scripting, Server Development | Tagged , , , , | Leave a comment

Perl parsing field value pairs without separation

It is possible with perl functional programming to solve some interesting problems. Suppose that you have a data set that has been processed to a degree where there was an error in the processing which removed some required delimiters such … Continue reading

Posted in Perl Scripting, Server Development | Tagged , , , , , | Leave a comment

Plesk RHEL 5.2 500 Error Virtualhosted Sites

Upon receiving a 500 error on multiple sites due to what appears to be an update to Plex followed by an update to RHEL5, we have found a way to track the issue early and resolve quickly. There is a … Continue reading

Posted in Server Development, Uncategorized | Tagged , , , , , , | Leave a comment

Mysql Script Tools

Mysql Script Tools There are a number of operations in mysql that could benefit from being optimized in a script that performs these actions on all tables. A List of maintenance commands can be found. As it is, currently I … Continue reading

Posted in Bash Scripting | 6 Comments

Perl Socket.so and inet_aton.so

Upon building a module for perl I ran into a build issue with Socket.so in regards to an undefined symbol: inet_aton.so. When taking a closer look at the socket.so lib, it is apparent that the “proper” libraries should be there, … Continue reading

Posted in Perl Scripting | Leave a comment

Managing logs with Sqlite and syslogd

Update Nov 26, 2010 Looking at the code for current version of syslogd from opensolaris. The exact sources can be obtained from this link which is what I will be working from as of tonight. The source code for sqlite … Continue reading

Posted in Projects, Server Development | 1 Comment

Using Perl to time Bash Calls – Bash fine grain timer

Using Perl to time Bash Calls – Bash fine grain timer I was looking for a way to cross platform way to make a microsecond timer or anything less than one second for that matter in bash. Aside from doing … Continue reading

Posted in Bash Scripting, Perl Scripting | 1 Comment

Bash Multi Get using wget

Bash Multi-Get using wget If you were ever looking at using wget with a proxy – then this is probably the script for you. I haven&squo;t spent much time testing this and it requires a helper program written in perl … Continue reading

Posted in Bash Scripting | Leave a comment

Bash SQL Query Helper

What is Bash SQL Query Helper? This script is a very simple script that helps one to run sql commands from the command line with the command name and the query as opposed to running all sorts of switches. This … Continue reading

Posted in Bash Scripting | Leave a comment