[ale] sometimes I hate bash

Jim Kinney jim.kinney at gmail.com
Wed Dec 16 19:28:14 EST 2009


that's what it looks like but it only does it on that one script.

It just flunked again even with the racetrap .

On Wed, Dec 16, 2009 at 7:12 PM, Tim Watts <timtw at earthlink.net> wrote:

> Could cron be launching it twice?
>
> On Wed, 2009-12-16 at 18:49 -0500, Jim Kinney wrote:
> > script runs all hunky-dorey in userland.
> >
> > so time to put it into cron. To cover my bases for inferior cron
> > environemnt, the first thing the script does is . ~/.bash_profile
> > which in turn runs ~/.bash_rc which runs /etc/bashrc
> >
> > So it now looks just like a login env.
> >
> > maybe...
> >
> > Except somehow it now spawns _2_ copies of the running process and the
> > race is on! <insert appropriate swearing here>
> >
> > Since it's highly sequence dependent data processing and database
> > insertion and database processing, multiple out of order steps is
> > very, VERY bad.
> >
> > Solution: make the first line a -f test for a pid file and exit if it
> > exists. The second line writes the pid file. Shouldn't have to do
> > this...
> >
> > Still totally stumped on the multiple simultaneous processes.
> >
> > --
> > --
> > James P. Kinney III
> > Actively in pursuit of Life, Liberty and Happiness
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
>
>
> ________
> The release of atomic energy has not created a new problem. It has
> merely made more urgent the necessity of solving an existing one.
> -- Albert Einstein
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>


-- 
-- 
James P. Kinney III
Actively in pursuit of Life, Liberty and Happiness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20091216/bcc323b0/attachment.html 


More information about the Ale mailing list