I have KSH script.
If I run it manually using ./scriptname.ksh
then it would work fine.
but if I set up a crontab job, I get error that AQL not found. (AQL is like SQL but not different).
Here is my script code.
#!/usr/bin/ksh
AQL << EOF
select count(*) from <tableT>;
exit
Here is crontab -e
12 13 * * * /usr/users/somedir/dir3/dir4/scriptname.ksh > /usr/users/somedir/dir3/dir4/testz.txt 2>&1
Here is what crontab runs and outputs to testz.txt
/usr/users/somedir/dir3/dir4/scriptname.ksh: line 9: AQL: not found