Posted on October 5th, 2007 by lost-in-code
By default, when you schedule a cronjob, the cron daemon will email the administrator with the results of the schedule. You can easily turn off email reporting by appending the string “>/dev/null 2>&1” (without quotes) to the end of the command. Like this :
wget http://domain.com >/dev/null 2>&1
Hope this helps!
addthis_url = [...]
Tags: crontab, email, email reporting, scheduling
Filed under: Server Management | No Comments »
Posted on October 2nd, 2007 by lost-in-code
Hurry and get your free Ruby On Rails programming eBook from Sitepoint.
Download Ruby on Rails eBook
The offer only lasts for 60 more days.
It’s a great deal with an excellent book which will most certainly teach you alot about ROR.
addthis_url = ‘http%3A%2F%2Fwww.lost-in-code.com%2F16%2Ffree-sitepoint-ruby-on-rails-ebook%2F’;
addthis_title = ‘Free+Sitepoint+Ruby+on+Rails+eBook’;
addthis_pub [...]
Tags: ebook, Programming, ror, ruby on rails
Filed under: Books | No Comments »
Posted on October 1st, 2007 by lost-in-code
I thought that some of you might find it useful to learn how to generate a string with random numbers and letters. I wrote a quick function for generating a string like this. See it below :
function genRandomString() {
$length = 10;
$characters = ‘0123456789abcdefghijklmnopqrstuvwxyz’;
$string = ”;
for [...]
Tags: letters, numbers, php, random, random string, string
Filed under: PHP, Programming, Web Development | No Comments »