I Have this on the backup_exit_notify, how i change to only send the "father" job
[root@brspomas01 bin]# cat backup_exit_notify
#! /bin/sh
# $Header: backup_exit_notify.sh,v 1.6 2011/10/19 14:07:15 $
#bcpyrght
#***************************************************************************
#* $VRTScprght: Copyright 2013 Symantec Corporation, All Rights Reserved $ *
#***************************************************************************
#ecpyrght
#
# backup_exit_notify.sh
#
# This script is called by the NetBackup scheduler, after an individual
# client backup has completed (including media closure and image db validation.
#
# NOTE: this script will always be run in "background" mode, meaning that
# the NetBackup scheduler will NOT wait for it's completion.
#
# This script:
# receives 8 parameters:
# CLIENT - the client hostname
# POLICY - the policy label
# SCHEDULE - the schedule label
# SCHEDULE_TYPE - the type of schedule: FULL INCR UBAK UARC
# STATUS - the backup status for this job
# STREAM - the backup stream number for this job
# DONE_TRYING - 0=will retry, 1=done, will not retry.
# PRIMARY_JOBID - the jobid for this job
# must be executable by the root user
# should exit with 0 upon successful completion
OUTF=/usr/openv/netbackup/bin/BACKUP_EXIT_CALLED
# --------------------------------------------------------------------
# main script starts here
# --------------------------------------------------------------------
umask 022
dateStr=`date`
if [ "$#" -lt 8 ]
then
echo ${dateStr} "backup_exit_notify expects at least 8 parameters: $*" >> $OUTF
exit 1
fi
# You may want to delete the output file elsewhere in order to
# accumulate successful backup information.
# If so, comment out the following 4 lines.
if [ -s $OUTF ]
then
/bin/rm -rf $OUTF
fi
if [ ! -f $OUTF ]
then
touch $OUTF
fi
echo ${dateStr} "-----------------------------" >> $OUTF
echo ${dateStr} " CLIENT: $1" >> $OUTF
echo ${dateStr} " POLICY: $2" >> $OUTF
echo ${dateStr} " SCHEDULE: $3" >> $OUTF
echo ${dateStr} "SCHEDULE TYPE: $4" >> $OUTF
echo ${dateStr} " STATUS: $5" >> $OUTF
echo ${dateStr} " STREAM: $6" >> $OUTF
echo ${dateStr} " DONE_TRYING: $7" >> $OUTF
echo ${dateStr} "PRIMARY JOBID: $8" >> $OUTF
echo ${dateStr} "-----------------------------" >> $OUTF
#
# might want to mail this info to someone
#
# cat $OUTF | mail -s "NetBackup backup exit" someone_who_cares
exit 0