that's what it looks like but it only does it on that one script.<br><br>It just flunked again even with the racetrap .<br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 7:12 PM, Tim Watts <span dir="ltr"><<a href="mailto:timtw@earthlink.net">timtw@earthlink.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Could cron be launching it twice?<br>
<div><div></div><div class="h5"><br>
On Wed, 2009-12-16 at 18:49 -0500, Jim Kinney wrote:<br>
> script runs all hunky-dorey in userland.<br>
><br>
> so time to put it into cron. To cover my bases for inferior cron<br>
> environemnt, the first thing the script does is . ~/.bash_profile<br>
> which in turn runs ~/.bash_rc which runs /etc/bashrc<br>
><br>
> So it now looks just like a login env.<br>
><br>
> maybe...<br>
><br>
> Except somehow it now spawns _2_ copies of the running process and the<br>
> race is on! <insert appropriate swearing here><br>
><br>
> Since it's highly sequence dependent data processing and database<br>
> insertion and database processing, multiple out of order steps is<br>
> very, VERY bad.<br>
><br>
> Solution: make the first line a -f test for a pid file and exit if it<br>
> exists. The second line writes the pid file. Shouldn't have to do<br>
> this...<br>
><br>
> Still totally stumped on the multiple simultaneous processes.<br>
><br>
> --<br>
> --<br>
> James P. Kinney III<br>
> Actively in pursuit of Life, Liberty and Happiness<br>
><br>
</div></div><div class="im">> _______________________________________________<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>
<br>
<br>
________<br>
</div>The release of atomic energy has not created a new problem. It has<br>
merely made more urgent the necessity of solving an existing one.<br>
-- Albert Einstein<br>
<br>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br>Actively in pursuit of Life, Liberty and Happiness <br><br>