dshaw21369
Programmer
- Jul 8, 2002
- 64
I'm wanting search for the string "Rollback", if I see the string send an email with a message.
#!/usr/bin/perl
@XML_COBOL_LOG =();
$Rollback ="Rollback";
#Open Debug
unless (open (Debug,">/export/home/egate/Perl_Development/Debug.txt"
)
{
print "Debug.txt does not exist\n";
}
#Open bobConvert_XML_to_Cobol.log
unless (open (XML_COBOL_LOG,"</export/home/egate/egate/client/logs/bobConvert_XML_to_Cobol.log"
)
{
print Debug "bobConvert_XML_to_Cobol.log does not exist\n";
}
(@XML_COBOL_LOG)=<XML_COBOL_LOG>;
close Debug;
close XML_COBOL_LOG;
Thanks for your help!
#!/usr/bin/perl
@XML_COBOL_LOG =();
$Rollback ="Rollback";
#Open Debug
unless (open (Debug,">/export/home/egate/Perl_Development/Debug.txt"
{
print "Debug.txt does not exist\n";
}
#Open bobConvert_XML_to_Cobol.log
unless (open (XML_COBOL_LOG,"</export/home/egate/egate/client/logs/bobConvert_XML_to_Cobol.log"
{
print Debug "bobConvert_XML_to_Cobol.log does not exist\n";
}
(@XML_COBOL_LOG)=<XML_COBOL_LOG>;
close Debug;
close XML_COBOL_LOG;
Thanks for your help!