Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am extemely new to unix. I have a task that I need to complete and it involves interpreting a script. The code is absolutely foreign to me. I have done some research on the net but nothing that help's 100%. I have an example that I can give. If anyone can tell me what this code is saying, that would be great.
echo " " >> $LOGFILE
echo "Creating example.parm for later use on `date`" >> $LOGFILE$ORACLE_HOME/bin/sqlplus -s $DBA_OWNER @$PR_CUSTOM_DIR/example
if find $HRDATDIR/example.parm | xargs grep -i "STOP"
thenfor MAILEE in `cat $MAILUSERS`
do
/usr/ucb/Mail -s "$SUBJECT" $MAILEE < $MESSAGE
done
exit
fi

echo " " >> $LOGFILE
echo "Creating example.parm for later use on `date`" >> $LOGFILE*logging the comment in quote to the log directory
$ORACLE_HOME/bin/sqlplus -s $DBA_OWNER @$PR_CUSTOM_DIR/example
* logging to an oracle database as the database owner
if find $HRDATDIR/example.parm | xargs grep -i "STOP"
then
* searching for the example paramfor MAILEE in `cat $MAILUSERS`
do
/usr/ucb/Mail -s "$SUBJECT" $MAILEE < $MESSAGE
done
exit
fi
*mail the contents of the message to the list of people in the file.hope this helps,
Fukare

![]() |
Unix script help (strip ...
|
SCO Unix 5.0.5 lost root ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |