Computing.Net > Forums > Unix > Brand new to unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Brand new to unix

Reply to Message Icon

Name: rmacty
Date: October 26, 2007 at 09:04:32 Pacific
OS: xp
CPU/Ram: intel pentium
Product: dell
Comment:

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"
then

for MAILEE in `cat $MAILUSERS`
do
/usr/ucb/Mail -s "$SUBJECT" $MAILEE < $MESSAGE
done
exit
fi



Sponsored Link
Ads by Google

Response Number 1
Name: Fukare Yimtatu
Date: December 9, 2007 at 18:40:58 Pacific
Reply:

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 param

for 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


0
Reply to Message Icon

Related Posts

See More


Unix script help (strip ... SCO Unix 5.0.5 lost root ...



Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Brand new to unix

help with script - I am new to Unix www.computing.net/answers/unix/help-with-script-i-am-new-to-unix/2638.html

New to Unix www.computing.net/answers/unix/new-to-unix/2934.html

Newbee to Unix: Facing Problem www.computing.net/answers/unix/newbee-to-unix-facing-problem/6622.html