First, I may have been unclear in my question/posture and thus I must remedy that lack of clarity now. I am VERY, VERY new to PERL. In fact, if there were a way to compare a pool that was 1mm deep by 1mm in diameter, that would be MANY, MANY times the volume of knowledge I have about PERL. So, here's what I'm trying to do and why I'm thinking I should progress down said path. If there is a better way to do this then please, tell me. I'll do it EXACTLY the way you say.
Technical Boundaries:
1) In my production environment the set of scripts will be fired via a tool called Dollar Universe. Dollar Universe is a centralized job scheduling tool (think of cron on crack) use to schedule many jobs on multiple machines. If you want you can see http://www.orbitsw.co.uk/du_index.html for more details.
2) As a result of #1 I MUST assume that my scripts will NOT have access to a standard Solaris shell. In fact, said scripts only have access to STDIN. This means doing things like 'pwd' to get the current working dir seems not possible inside the script.
3) I will be developing this set of scripts on a development environment where I WILL have access to a shell BUT, again I SHOULD NOT assume this in production. Along with the dev environment there is a test and a production look alike that these scripts will move through.
4) When the job scheduler calls my script as a daily, monthly, weekly or any other "time frame" job I need it to pass the "controller" script called laoder.pl 2 parameters. The first parameter will tell the loader.pl what is the operating time frame and the second, if it is in the proper time frame, will tell the loader.pl what granularity of Oracle data load to perform for which time frame.
5) Since 4 is true, I have to be able to receive the CLI parameters in loader.pl and possibly pass them on to other *.pl scripts in directories BELOW the dir level of loader.pl
6) The end goal of this is to, based on the passed parameters, fire an Oracle sqlldr process to load up some flat file data into some Oracle tables.
7) By using a controller *.pl file (that's loader.pl) I hope to design this in a way to be able to EASILY add or delete timeframe loads as marketing decides they want them added/deleted.
As far as 'Debug your second script "manually" first' ... I have and it works great. In other words, I can pas it parameters manually at the CLI and it runs like a champ. But, based on the items above I can't assume this script will have access to a shell when it runs in production .... thus the reason I want to "magically" pass in stuff from script 1 (loader.pl).
Thanks in advance for your help. Have a nice day and remember I'm REALLY new at this.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.