Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

tcl proc with input argument run from UNIX script...how

garywickeDec 28 2004 — edited Jan 4 2005
Environment:

OWB 10g Client on Windows XP Professional
Repository - 9.2.0.4 on UNIX (AIX 5.2)
Target - 9.2.0.4 on UNIX (AIX 5.2)

I need a little tcl advice, please!

I have a tcl script (proc, I guess) that takes one argument, in this case a mapping name.

I would like to execute this tcl script from a UNIX shell script and pass the name of the mapping as an argument to the UNIX shell script. Something like:

OMBPlus.sh omb_deploy.tcl $1

where omb_deploy.tcl is the script that has all the OMBPlus commands in it to create the deployment plan and execute it.

I'd like to pass the mapping name as a command line argument to the UNIX shell script but it doesn't like it.

When I execute the script as above, I don't see any output and the mapping does not get deployed.

So, I need a little help on two (2) issues:

1- How do I generate a log file of the output of the tcl script?

2- How do I pass the mapping name as an argument to the UNIX shell script?

For #1 I have tried using the 'open logfilename w' at the top of the tcl script but it produces no output.

I saw another example from this forum where the author used a 'putslog' command in the script. I can't find any documentation on that command, what does it do?

That same script set a global OMBLOG variable at the top of the script and used the 'putslog' command in the body.

Is OMBLOG some special reserved word for logging? I couldn't find anything on it.

I'm trying to learn tcl but struggling to put all the tcl stuff together with all the OMBPlus stuff and make it all work is getting the best of me.

Any assistance, with examples (I learn best from them), is greatly appreciated.

Gary
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2005
Added on Dec 28 2004
2 comments
616 views