Category Archives: Linux

Daemonize PHP (properly)

There is often a need when building a website to automate background processes, for example: Sending emails: many sites don’t immediately connect to an SMTP server when a user fires off an email request, but rather store the email in … Continue reading

Posted in Linux, PHP | Tagged , , , , | Leave a comment

svn: ‘http://subversion.tigris.org/xmlns/dav/md5-checksum’ was not present on the resource

I recently got this somewhat cryptic error message when trying to merge something in Subversion. In the root directory of my working copy, I ran svn merge, something along the lines of: svn merge -c 1234 http://svn.example.com/myproject/trunk ./ Only to … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment

Redirect and append STDOUT and STDERR to a log file

Redirecting STDOUT to a file is easy: command > foo.log Redirecting STDERR to a file is also easy: command 2> foo.log Redirecting both STDOUT and STDERR to a file is also fairly straightforward: command &> foo.log But what if we … Continue reading

Posted in Linux | Tagged , , , , , , | Leave a comment

Ubuntu 9.10 Karmic Koala: Temperature above threshold, cpu clock throttled

I recently upgraded my Ubuntu install to the latest Karmic Koala, and to be honest I’ve not been totally impressed.   A range of little bugs that had been fixed before seem to have reappeared – just little things such as … Continue reading

Posted in Linux | Tagged , , , , , , , , , , , , , , | 7 Comments

Logging and monitoring server load

We decided it would be a good idea to be able to periodically log server load so we can identify potential problems So I wrote a little script that outputs the current server load along with a timestamp in CSV … Continue reading

Posted in Linux | Tagged , , , , , , , | Leave a comment

rsync – non recursive copying

I was looking for a way to get rsync to copy all the files in a particular directory and not recurse into the sub-directories.   Unfortunately I couldn’t find an appropriate parameter and a quick search on Google turned up nothing … Continue reading

Posted in Linux | Tagged , , , , | 11 Comments