Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 24 Jan 2003 @ 21:29:18 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: How setup a e-mail notification from mload on failure of job
 
From:   Sam bass

  Assume my client machine is Windows 2000  


Okay.


  2) Is there anyway to call teradata utilities from perl script? so that we can setup mail and paging from perl on failure of teradata utilities?  


Yes! And fortunately with Perl being Perl, "There's more than one way to do it".

You can use backticks (to the left of the 1):

my $return_val = `mlod < your_mload_script`;


Or, you can use the system() function:

(system("mlod < your_mload_script") == 0) || die "Oops!";


Hope this helps,

Sam



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016