script runs all hunky-dorey in userland.<br><br>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<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 race is on! <insert appropriate swearing here><br><br>Since it's highly sequence dependent data processing and database insertion and database processing, multiple out of order steps is very, VERY bad.<br>
<br>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...<br><br>Still totally stumped on the multiple simultaneous processes.<br clear="all">
<br>-- <br>-- <br>James P. Kinney III<br>Actively in pursuit of Life, Liberty and Happiness <br><br>