I am writing a backup script for AIX 5 and running into a problem where the output isn't being shown in the output log that is being created. Any ideas on how this would be corrected? I have included the script below. The only thing showing up in the file is listed below. I was hoping to capture all the stages of the output from the backup command that is actually seen when you run it from the command line.
--current output --cut and paste ---
Hello this is dumper_0 on 041706 on peter
We'll be performing backups this morning, for:
dumper_0 completed at 041706
--current output -- end of cut and paste ----
-- actual script -- cut and paste ----
#!/bin/csh -f
#
# $Source$
# $Revision$
# $Date$
# dumper_0
#
# Configured to backup local file systems on aixdbart01
set date = `date +%m%d%y`
set name = dumper_0
set host = peter
#
#
#
#
#
#set alarm1 = Cell or pager info
#set alarm2 =
set admin =
set file = /home/backuplogs/$host.$date
set header = /var/backups/header/$host.backup
#
#
#
touch $file
cp $header $file
echo "Hello this is $name on $date on $host" >> $file
echo "We'll be performing backups this morning, for:" >>
$file
echo "" >> $file
echo "" >> $file
echo "" >> $file
tctl -f /dev/rmt0 rewind
#################################################
backup -0 -u -f /dev/rmt0 / >> $file
#backup -0 -u -f /dev/rmt0 /usr >> $file
#backup -0 -u -f /dev/rmt0 /var >> $file
#backup -0 -u -f /dev/rmt0 /home >> $file
#backup -0 -u -f /dev/rmt0 /opt >> $file
#backup -0 -u -f /dev/rmt0 /home/app >> $file
#backup -0 -u -f /dev/rmt0 /u01 >> $file
#backup -0 -u -f /dev/rmt0 /u02 >> $file
#backup -0 -u -f /dev/rmt0 /sortmerge >> $file
#backup -0 -u -f /dev/rmt0 /proj >> $file
#################################################
echo "" >> $file
echo "" >> $file
echo "$name completed at $date" >> $file
/usr/bin/mail -s Backup for peter $admin < $file
-- actual script -- end cut and paste ----