[ale] sometimes I hate bash
Tim Watts
timtw at earthlink.net
Wed Dec 16 19:36:58 EST 2009
Does set -x reveal anything?
Would it behave better if you didn't source .bash_profile (without
opening up another can o worms)?
On Wed, 2009-12-16 at 19:13 -0500, Jim Kinney wrote:
> 2 8 * * * /home/user/bin/scriptname
>
> same incarnation works with a different script in the same directory
> but has no database work to do.
>
> BTW: <esc>wq won't email in gmail as I just tried and discovered
> (without a vi plugin I saw)
>
> On Wed, Dec 16, 2009 at 7:00 PM, JK <jknapka at kneuro.net> wrote:
> Post the crontab line, please?
>
>
> On 12/16/2009 4:49 PM, 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 first mistake was granting corporations the rights of
> citizens.
> Now *only* corporations have the rights of citizens. --
> Unknown
> _______________________________________________
> 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
>
> _______________________________________________
> 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
________
I believe love is primarily a choice and only sometimes a feeling. If
you want to feel love, choose to love and be patient.
-- Real Live Preacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part
Url : http://mail.ale.org/pipermail/ale/attachments/20091216/d0b7864f/attachment-0001.bin
More information about the Ale
mailing list