Veritas-bu

[Veritas-bu] backup_exit_notify - Windows

2004-06-22 16:59:50
Subject: [Veritas-bu] backup_exit_notify - Windows
From: kris.williams AT hp DOT com (WILLIAMS, KRISTOPHER L)
Date: Tue, 22 Jun 2004 15:59:50 -0500
I'm also having a problem with backup_exit_notify, but on the windows
platform. It appears that the script is not being started after a backup
completes. The names and location of the file are correct,
backup_exit_notify.cmd located in %installdir%\veritas\netbackup\bin.

The script is not doing anything tough. It is just echoing out $1 thru
$5 to a text file. Anyone have any ideas on this? Seems like Veritas
support is stumped also.


Thanks,

Kris    
 

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of David
Roman Esteban
Sent: Tuesday, June 22, 2004 1:00 PM
To: Jason Helfman; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] backup_exit_notify

Take out else condition


if [ "$a" -eq 0 ] 
then echo "hello"
 else
 fi
bash: syntax error near unexpected token `fi'

if [ "$a" -eq 0 ] 
then echo "hello"
 fi
hello

Best regards
David Roman Esteban
droman AT plcendesa DOT com
  

Un saludo
David Roman Esteban
droman AT plcendesa DOT com
  



-----Mensaje original-----
De: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]En nombre de Jason
Helfman
Enviado el: martes, 22 de junio de 2004 18:07
Para: veritas-bu AT mailman.eng.auburn DOT edu
Asunto: [Veritas-bu] backup_exit_notify


I've modified the end of backup_exit_notify to only notify me of status 
other then zero, but I don't believe it is working. Can anyone see 
anything with my modifications that would have the script not executing 
correctly?

As it is now, other then zero, I am not notified. Before sending this 
email, I changed mailx to /bin/mailx.

Would this change anything?

#
# might want to mail this info to someone
#

# NTFLOGS mail to blah AT blah DOT com
if [ "$2" = "job" ]
then
         cat $OUTF |mailx -s "NetBackup exit of $5 for $2" blah AT blah DOT com
fi

# All Jobs other then Status of Zero, send to unix team.
if [ "$5" -ne 0 ]
then
      cat $OUTF | mailx -s "NetBackup exit of $5 for $2" me AT whatever DOT com
else
fi
exit 0
-- 
Jason G Helfman, Ticketmaster
8800 W. Sunset Blvd.
West Hollywood, CA 90069
213/739-5174 Direct
310/345-1554 Cell
310/360-3300 Main
jason.helfman AT ticketmaster DOT com
GnuPG Fingerprint: A349 3CAA 5085 DC6E C485  7356 13C3 5772 F865 C926
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


<Prev in Thread] Current Thread [Next in Thread>