Technology Insights

Do Not Save Output Of wget Post Data

If you are putting together a script that uses wget to post data to various URL’s it is likely that you do not want wget to save the response back from the server in files. You can easily get around this by specifying the output file that wget save to with the -O switch. Below is an example of what would happen when the -O switch is not used followed by an example of using wget with the -O switch outputting the results to /dev/null.

Technology Insights

PHP Script Using Exec Function & Launched From Crontab Hogging Server Memory

While working on a PHP script on a CentOS Linux server that runs from crontab I ran into an issue where PHP was bogging the server down because of memory use. The script has a lot of output that is not necessary to store though when using the exec function within the PHP script it was storing the unneeded output to an away which I believe was causing the memory usage problem. At first I thought I simply needed to modify the memory_limit setting within php.ini however that was not the true issue at hand. Below I describe two items to look at modifying if you run into a similar issue.

Technology Insights

Send VBS Script Output To Text File On Windows

Earlier today I used a VBS script to scrub all the email addresses from a Windows Exchange server since I couldn’t find any other way to display all email addresses including any aliases assigned to specific users. I needed to find a secondary email address from one of the many domains configured on the server so I could remove it from a user and add it to another user. Anyhow when run the script would pop up this huge window that did not include scrollbars so it was impossible to find what I was looking for. Use the information below to output VBS script output to a text file on a Windows computer.

Technology Insights

Htop Exclamation Mark Near Uptime In Output On Linux Server

The other day while troubleshooting an issue on a server I noticed something I hadn’t ever noticed before which was an exclamation mark next to the uptime output from the htop command. After investigating and looking over the source I found that it is a bonus letting you know that your server has been up for a long time. Basically anything over 100 days of uptime will produce an exclamation mark next to the uptime reading. Below I show the sourcecode from the UptimeMeter.c file in the htop source as well as examples of how the htop uptime can vary depending on how long your server has actually been up.