I'm trying to run a shell script from a cronjob
One of the lines of the script is
sqlplus apple/apple@DB @/opt/gtx/common/reconreport/run_report_detail > /dev/null
where run_report_detail is somthing like
spool report
select * from table_a
spool off;
exit;
however the report file is not being created when I run the shell script from a cronjob but is when I run it from the commamnd line. Has anyone ever come across an issue using spool as part of a cronjob?
thanks
One of the lines of the script is
sqlplus apple/apple@DB @/opt/gtx/common/reconreport/run_report_detail > /dev/null
where run_report_detail is somthing like
spool report
select * from table_a
spool off;
exit;
however the report file is not being created when I run the shell script from a cronjob but is when I run it from the commamnd line. Has anyone ever come across an issue using spool as part of a cronjob?
thanks