![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cronjob inside the script | namishtiwari | Shell Programming and Scripting | 3 | 02-04-2008 08:35 AM |
| How to run a script as different user inside cronjob in solaris. | csg_user | SUN Solaris | 11 | 12-15-2007 06:49 PM |
| help help cronjob problem with script | bucci | Shell Programming and Scripting | 4 | 02-10-2007 04:38 AM |
| Shell script not running thru Cronjob | gauravshrinivas | Shell Programming and Scripting | 8 | 11-03-2006 10:17 AM |
| Variables are not getting exported while running the script in cronjob | csaha | Shell Programming and Scripting | 7 | 03-21-2006 04:32 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi All,
Am having a shell script JDE_REPORT_GEN.sh which intern calls a sql script JDE_CHANGED_DATA.sql. the problem here is when i run this script from the $prompt it is running fine and giving out the spool file required. if i schedule the same shell in cronjob am not getting the spool file.Please advice this is very urgent and the content of the script is as below. ################################# $cat JDE_REPORT_GEN.sh #!/bin/sh cd /tmp/azum ORACLE_HOME=/asera/app/oracle/product/10.2.0/db_1 export ORACLE_HOME sqlplus manta/manta@MTACS3 <<VITMAN @/tmp/azum/JDE_CHANGED_DATA.sql exit VITMAN ####################################### $ cat JDE_CHANGED_DATA.sql set echo off pagesize 49000 head off feed off veri off trimspool on set linesize 30000 spool /tmp/azum/JDE_DATA_CHG_QTY_DUMMY_REPORT.csv *****sql query here****** spool off; ########################################## a prompt response to this is much appriciated. thanks in agvance, Azum. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|