Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Monday, November 5, 2007

Cron jobs in DirectAdmin

Command to create cron job in DirectAdmin

/usr/local/bin/php /home/leewaynet/domains/leewayhertz.net/public_html/backupScript/index.php

Thursday, August 2, 2007

Float number handling in Shell

I was having hard time using float number in shell programming.
Shell treat any number with . as a string. Then I got a trick to use bc ( binary calculator):

Usage:
num="echo $strnum | bc"

Tuesday, July 31, 2007

Usng AWK

To get field 5 values
ls | awk '{ print $5 }'