Home » Infrastructure » Unix » shell script
shell script [message #97166] Tue, 01 January 2002 22:05 Go to next message
sridhar
Messages: 119
Registered: December 2001
Senior Member
I'am looking for an example of a shell script that runs a pro*c program. The pro*c program takes parameters like day, month,year and other variables that have been set in the unix environment.

Thank you.

----------------------------------------------------------------------
Re: shell script [message #97198 is a reply to message #97166] Mon, 14 January 2002 11:43 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
a pro*c program is merely a program like "ls" or "mailx" in Unix.

 #! /bin/ksh
 TTIME=`date '+%H:%M'`
 MAILTO="a@b.com,abc@xyz.com"
 mailx -s "hello world $TTIME" $MAILTO < abc.log


</pre>
Previous Topic: Re: ORA-12154 TNS unable to connect to destination..
Next Topic: Re: Oracle 8i installation on SCO Unixware 7
Goto Forum:
  


Current Time: Thu Mar 28 15:40:41 CDT 2024