result_ok(){ success echo } result_fail(){ failure echo } ping_host() { /bin/echo -en "`timestamp_color` Ping workstation:" >> $log /bin/ping -c1 $ip_number > /dev/null ping_result=$? if [ $ping_result = 0 ] then result_ok >> $log else result_fail >> $log exit_status="3" exit_backup fi } log file (ektelesh me to xeri) ------------------------ START BACKUP ON 192.168.10.25 ------------------------ 22/06/07 17:12:46 Checking Parameters: [ OK ] 22/06/07 17:12:46 Checking User config: [ OK ] 22/06/07 17:12:46 Ping workstation: [ OK ] log file (ektyelesh mesw crontab) ------------------------- START BACKUP ON 192.168.10.25 ------------------------ 22/06/07 15:57:01 Checking Parameters:[ OK ] 22/06/07 15:57:01 Checking User config:[ OK ] 22/06/07 15:57:02 Ping workstation:[ OK ]