| | |
sag.sh[11]: SAG: not found
![]() |
•
•
Join Date: Sep 2006
Posts: 7
Reputation:
Solved Threads: 0
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
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.
![]() |
Similar Threads
- XP not booting - lsass.exe not found (Windows NT / 2000 / XP)
- 3 diff. trojans found,please help (Viruses, Spyware and other Nasties)
- Ie Redirected When Ulr Isn't Found, IE redirected when ulr isn't found (Web Browsers)
- Page Can Not Be Found (Networking Hardware Configuration)
- Ureaka!! I found it! Please check this log (Web Browsers)
- printer could not be found (Web Browsers)
Other Threads in the Shell Scripting Forum
- Previous Thread: batch or wordlist search and replace in one file
- Next Thread: AWK Extracting Multiple Lines
Views: 2222 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Shell Scripting





