<div dir="ltr"><div><div><div>Well, this became a little easier now that I figured out a python(*) way to insert the newer file information. I can do either command line options per file or whatever. <br><br></div>Still thinking this through.<br>
<br></div>Leam<br><br></div>* yeah, awk can do the same thing. As can sed. I wanted to stretch my python-fu a bit.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 18, 2013 at 3:56 PM, Phil Turmel <span dir="ltr"><<a href="mailto:philip@turmel.org" target="_blank">philip@turmel.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 10/18/2013 01:03 PM, leam hall wrote:<br>
> So far, that's what I'm thinking. The process would be:<br>
><br>
> master script zeros out the param file<br>
> master script takes options given to it and writes to a param file<br>
> For example:<br>
><br>
> params.sh<br>
> TEST=0 # Test for condition, default true<br>
> FAIL=1 # Has not failed yet<br>
> FIX=1 # Default to do not fix<br>
><br>
> Called script looks something like:<br>
><br>
> . params.sh<br>
<br>
</div>There be dragons.<br>
<br>
What happens if the master script crashes/fails to clean up and you run<br>
one of the subordinate scripts?<br>
<br>
What happens if you run multiple instances of the master script<br>
simultaneously (unintentionally, perhaps)?<br>
<br>
Environment variables and/or command line arguments are the safe ways to<br>
do this. Files are not. (Pipes are ok too, but can be hard to use for<br>
this case.)<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><a href="http://leamhall.blogspot.com/" target="_blank">Mind on a Mission</a></div>
</div>