satishgaudo.com

Understanding technology

Archive for October 21st, 2009

Linux rsync command

Following command is used for remote syncing of a folder on two remote servers: /usr/local/bin/rsync -avz -e ssh /opt/www/cms/imagedata/2009/oct/ webdoc@domU-12-31-39-03-09-20:/opt/www/clt20/imagedata/2009/oct/ To rsync a particular file use: /usr/local/bin/rsync -avz -e ssh /opt/www/clt20/rss.xml webdoc@domU-12-31-39-03-09-20:/opt/www/clt20/

21 October 2009 at 19:41 - Comments

crontab example

Here is the crontab code: # start apache on reboot @reboot mount -t ext3 /dev/sdf /opt/ @reboot /etc/init.d/httpd start # start mysqld on reboot @reboot /etc/init.d/mysqld start */10 * * * * /usr/bin/php /opt/www/cron/getlivestat.php 10 * * * * /usr/bin/php /opt/www/cron/generaterss.php 25 14 * * * /opt/www/cron/rotatelogs.sh */02 * * * * sh /opt/www/cron/imagedata_upload.sh >> /opt/www/cron/imagedataoutput.log To set crontab for a particular [...]

21 October 2009 at 19:37 - Comments

Finally rediff.com’s minimalist paying

Finally rediff.com’s minimalist paying them. It pushed them from No. 5 india rankings to No. 8 .

21 October 2009 at 17:09 - Comments