Technology Insights

Send Mail Attachments Using mail Command From A Linux Shell

One thing that can be really helpful for Linux administrators is sending mail attachments via the Linux command line. It is fairly widely known that you can inject text files into email by piping the outputs of those files to the mail command however something that is less known is attaching files to an email sent via mail. The information below describes how to send mail from a Linux shell using the mail command.

Technology Insights

PostgreSQL: Run A SELECT Statement From A Linux Shell Using PSQL

Earlier today I was troubleshooting some resource issues on a PostgreSQL server and needed to test some various SELECT statements to see if any of them were causing problems. I also wanted to verify the amount of resources a SELECT statement made using PGAdmin versus the amount of resources the same SELECT statement used running it directly on the Postgres server itself. Below is information on how to run a SELECT statement from a Linux shell. In this example the server is running CentOS Linux and PostgreSQL 8.4.4.

Technology Insights

How To Change The IP Address On A Verifone Vx570 Credit Card Machine

The other day Martin and I were changing some things around on the computer shop’s network and we needed to modify the IP address of the credit card machine so it would operate properly on our new setup. While changing the Internet Protocol address isn’t very hard the issue we ran into was figuring out how to type a period after each octet of the IP. After some fooling around we figured it out and we have explained all of the steps below to modify the IP address of a Vx570 CC machine.