The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-24-2008
azum azum is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 2
Thumbs down How to call a shellhaving sql script from cronjob

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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0