[英]return code 999 error while executing the shell script through crontab
我創建了一個 shell 腳本,它連接到 teradata 並執行給定的條件,比如說 test.sh。 如果只有 test.sh 的輸入文件 wrapper.sh,我創建了一個包裝腳本來調用 test.sh。
包裝器.sh:
cd ${FILELOC
COUNT=$(ls -l 1001_*.txt | wc -l)
if [ "$COUNT" -ne 0 ]
then
/u/w/us/bin/test.sh.sh`
fi
當我手動執行 wrapper.sh 時,會調用 test.sh 並在沒有錯誤的情況下執行。 但是當我在 cron 中安排它時,它會拋出一個錯誤,如下所示
EXIT ERRORCODE;
*** Exiting BTEQ...
*** RC (return code) = 999
請幫助我理解這個問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.