Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 25 Jan 2007 @ 16:22:03 GMT


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


Subj:   BTEQ not called by crontab in unix
 
From:   Mohd Suhail

Hi All,

I wanna execute a shell script 'abc.sh' that looks like this:

     bteq < /a123b/tdscripts/abc.btq
              >> /a123b/tdscripts/hello1.log 2
              >> /a123b/tdscripts/hello1.log

abc.btq is a bteq file containing some teradata sql statements.The problem here that this shell script runs absolutely fine if i execute it manually proving the fact that abc.btq is correct . The output is a log file containing the statement 'successful'

But when i inserted the same shell script in crontab(a scheduler in unix) to execute it at a specific time everyday, it doesn't run. My crontab entry looks like this:

     * * * * * /a123b/tdscripts/abc.sh
              >> /a123b/tdscripts/hello1.log 2
              >> /a123b/tdscripts/hello1.log

Hence the result is a log file of size 0 bytes. This brings me to the conclusion that the crontab never executed bteq to execute abc.btq. Can anybody help me out with this problem as to how to execute a bteq file using crontab


Thanks.



     
  <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