problem in running scripts
Thanks SAM...
I am doing with full path only.....and ofcourse with
chmod 700 scriptfile ......
sTILL it doesn't work.....
I added....'wait' after the chmod and before the ./scriptfile to recognise
the file from the directory....It is interesting..
still it says file not found....but it does chmod 700.....
wait a second,is it (may be) because the shell in awk...?.Please help.
Thanks.
Thanigai.
problem in running scr.....
Hi friends Still I have the problem....I have given the full path too....
Please help me out.....
Here is the script I am running......in crontab....
more ALERTLOG_TRIM
#!/bin/ksh
SCRIPT_DIR=/apps/oracle/bckup_scripts/TRIMLOG
export SCRIPT_DIR
#echo $SCRIPT_DIR
awk -f $SCRIPT_DIR/DBnames /var/opt/oracle/oratab > $SCRIPT_DIR/List_NAMES
awk -f $SCRIPT_DIR/Log_Trim $SCRIPT_DIR/List_NAMES > $SCRIPT_DIR/Trimlog
ksh $SCRIPT_DIR/Trimlog
more List_NAMES
SID1
SID2
SID3
SID4
SID5
more Trimlog
#!/bin/ksh
. $HOME/.profile
DUMP=`sqlplus -s system/passwd@SID1 @background_dump_dest.sql`
ALERTLOG=$DUMP/alert_SID1.log
export ALERTLOG
if
[[ -f $ALERTLOG ]]; then
cp $ALERTLOG $DUMP/alert_SID1.log.old
tail -100 $ALERTLOG > $DUMP/project/alert_SID1.log
cp $DUMP/project/alert_SID1.log $ALERTLOG
rm $DUMP/project/alert_SID1.log
fi
#!/bin/ksh
. $HOME/.profile
DUMP=`sqlplus -s system/passwd@SID2 @background_dump_dest.sql`
ALERTLOG=$DUMP/alert_SID2.log
export ALERTLOG
if
[[ -f $ALERTLOG ]]; then
cp $ALERTLOG $DUMP/alert_SID2.log.old
tail -100 $ALERTLOG > $DUMP/project/alert_SID2.log
cp $DUMP/project/alert_SID2.log $ALERTLOG
rm $DUMP/project/alert_SID2.log
fi
..............continues for all sids.....
fi
Bye...
still it says $SCRIPT_DIR/Trimlog not found....please help.
Thanks.
Thanigai.