my script=
#!/bin/bash
echo ************************BEGIN LOG******************************>>/root/backup_scripts/new_scripts/vmbackup.log 2>&1
date +"%m/%d/%Y %H:%M:%S $HOSTNAME">>/root/backup_scripts/new_scripts/vmbackup.log 2>&1
ruby /root/backup_scripts/new_scripts/aapxen01.rb>>/root/backup_scripts/new_scripts/vmbackup.log 2>&1
ruby /root/backup_scripts/new_scripts/apvdbs03.rb>>/root/backup_scripts/new_scripts/vmbackup.log 2>&1
ruby /root/backup_scripts/new_scripts/aapxen02.rb>>/root/backup_scripts/new_scripts/vmbackup.log 2>&1
echo end log entry>>/root/backup_scripts/new_scripts/vmbackup.log 2>&1
my log=
************************BEGIN LOG******************************
09/28/2010 11:10:01 aapsan01.boingoboingo.local
/root/backup_scripts/new_scripts/run.sh: line 5: ruby: command not found
/root/backup_scripts/new_scripts/run.sh: line 6: ruby: command not found
/root/backup_scripts/new_scripts/run.sh: line 7: ruby: command not found
end log entry
my crontab this runs from:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
[email protected]
HOME=/
LD_LIBRARY_PATH=/usr/local/lib/
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR
#sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
05 01 * * * /root/backup_scripts/run_backups.sh
22 11 * * * /root/backup_scripts/new_scripts/run.sh