sag.sh[11]: SAG: not found

Reply

Join Date: Sep 2006
Posts: 7
Reputation: sommer_queen is an unknown quantity at this point 
Solved Threads: 0
sommer_queen sommer_queen is offline Offline
Newbie Poster

sag.sh[11]: SAG: not found

 
0
  #1
Sep 13th, 2006
Hello everyone,

I am a beginner to shell script . I had to modify the following script and i get the following errors :
sag.sh[11]: SAG: not found
mv: cannot create /sag_0609131449.txt ermission denied


#!/bin/ksh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/export/home/oracle/app/oracle/product/8.1.7/lib
export LD_LIBRARY_PATH
export ORACLE_HOME=/export/home/oracle/app/oracle/product/8.1.7
export STOCK=/export/home/oracle/app/oracle/product/8.1.7/bin
export ENT=/home/atw11w99/ent/uc5
#SAG =$SAG:/home/atw11w99/ent/uc5/sag
SAG =/home/atw11w99/ent/uc5/sag
export SAG
#export VOKUS=\(DESCRIPTION\=\(ADDRESS\=\(COMMUNITY\=OEN.MCHH\)\(PROTOCOL\=TCP\)\(HOST\=MACH3.MCHH.SIEMENS.DE\)\(PORT\=1565\)\)\(CONNECT_DATA\=\(SID\=OMCP\)\)\)
DATUM=`date +%y%m%d%H%M`
export VOKUS=\(DESCRIPTION\=\(ADDRESS\=\(PROTOCOL\=TCP\)\(HOST\=139.21.204.196\)\(PORT\=1523\)\)\(CONNECT_DATA\=\(SID\=OMCP9\)\)\)
cd $ENT
$STOCK/sqlplus VKS#1/#vokus02@$VOKUS @sag.sql
cd $SAG

mv $ENT/sag.lst $SAG/sag_${DATUM}.txt

thank u for any help in advange
Last edited by sommer_queen; Sep 13th, 2006 at 8:53 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 30
Reputation: sut is an unknown quantity at this point 
Solved Threads: 1
sut sut is offline Offline
Light Poster

Re: sag.sh[11]: SAG: not found

 
0
  #2
Sep 13th, 2006
You've deleted a couple of lines before posting. The error is on line 8, not 11. Take the space out from between SAG and the equal sign in the environment variable assignment. That should solve the permission denied problem too.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 7
Reputation: sommer_queen is an unknown quantity at this point 
Solved Threads: 0
sommer_queen sommer_queen is offline Offline
Newbie Poster

Re: sag.sh[11]: SAG: not found

 
0
  #3
Sep 14th, 2006
Hi,

Thank you . its working now .
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Shell Scripting Forum


Views: 2222 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Shell Scripting
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC