Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 94446
BY: Tim Nicholson (nichot20)
DATE: 2010-08-05 07:26
SUBJECT: RE: Passing paramters to a script (not ocra)

 

Running my script without parameters works fine. When it does this it simply exits cleanly (Having already performed all the requires). This mimics your suggestion above afaik.

*However* under this condition although a library was "required", it was not invoked and therefore ocra did not bother to include it. Adding in a dummy call to a routine in the library fixed the issue.

I therefore think that ocra is trying to be somewhat cleverer than you allow for; and your assertion that "ocra executes your script for the sole purpose of determining all of the 'require' statements. Once this is done, your script can be halted." is not true.


Thread View

Thread Author Date
Passing paramters to a script (not ocra)Tim Nicholson2010-08-03 09:01
      RE: Passing paramters to a script (not ocra)Lars Christensen2010-08-04 13:56
      RE: Passing paramters to a script (not ocra)Bernard Kenik2010-08-04 19:03
            RE: Passing paramters to a script (not ocra)Tim Nicholson2010-08-05 07:26
                  RE: Passing paramters to a script (not ocra)Jarmo Pertman2010-08-06 06:50
                        RE: Passing paramters to a script (not ocra)Tim Nicholson2010-08-06 08:59
                              RE: Passing paramters to a script (not ocra)Jarmo Pertman2010-08-07 13:10
                                    RE: Passing paramters to a script (not ocra)Tim Nicholson2010-08-09 06:50

Post a followup to this message