|
Archives of the TeradataForumMessage Posted: Thu, 25 Jan 2007 @ 16:22:03 GMT
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.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||