<div>&nbsp; Thanks for the suggestions guys&nbsp;- I will try those</div>
<div>&nbsp;&nbsp; I do already have a process that kills all users &amp; processes at night so it&#39;s not locking on</div>
<div>&nbsp;&nbsp; records - I&#39;m just not sure what&#39;s causing this all of a sudden.</div>
<div>&nbsp;&nbsp; This cron script has been running for years (since about 1999) without incident - but starting</div>
<div>&nbsp;&nbsp;&nbsp; in August sometime, it has issues 3-4 nights a week -- very strange.</div>
<div>&nbsp;&nbsp; I haven&#39;t changed anything - but their company is growing and there are a lot more users</div>
<div>&nbsp;&nbsp; and input, and everything going on - so perhaps it&#39;s just &#39;growing pains&#39; and they are now</div>
<div>&nbsp;&nbsp; encountering problems&nbsp; - I&#39;m not sure </div>
<div>&nbsp;&nbsp; I will try redirecting stdout &amp; stderr to a file and see if that captures what&#39;s going on</div>
<div>&nbsp;&nbsp; </div>
<div>&nbsp;&nbsp; The main concern I have is there might be lookups going on that can&#39;t find what it needs</div>
<div>&nbsp;&nbsp;&nbsp; and perhaps the processing wasn&#39;t written properly, etc</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; Am I correct in saying that if a lookup is performed and a record is not found, as long as the</div>
<div>&nbsp;&nbsp;&nbsp; processing is written as</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; If:</div>
<div>&nbsp;&nbsp;&nbsp; Then:&nbsp; lookup cli &lt;client file&gt;.....</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; If:&nbsp; not cli</div>
<div>&nbsp;&nbsp;&nbsp; Then: return</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; Then filepro shouldn&#39;t get hung up if it can&#39;t find something, right?<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/10/07, <b class="gmail_sendername">Brian K. White</b> &lt;<a href="mailto:brian@aljex.com">brian@aljex.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>----- Original Message -----<br>From: <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>To: Filepro List
<br>Sent: Wednesday, October 10, 2007 5:18 PM<br>Subject: deleting blank records &amp; error capture<br><br><br>Running 5.06.09 on Unix --<br><br>Two questions I have --<br><br>&gt; 1) first - We have a temporary file where new input gets put in
<br>&gt; and a night process that copies that data into the &#39;big&#39; master file<br>&gt; how do I delete the &#39;blank&#39; records that get created in this temp file?<br><br>Just have the process that copies the records also delete them.
<br>The disk space is not freed, but so what? The record is freed in that it<br>will just get filled again tomorrow night. Say you get 1000 records in every<br>night. Do you really care if the key file shrinks to the size of 1 record,
<br>grows to the size of 1000 records and shrinks back to 1 over and over every<br>day, or just stays the size of 1000 all the time? In reality the file will<br>bump up and get larger once in a while whenever your import is larger than
<br>usual, but it doesn&#39;t grow and grow every day in a scenario like you<br>described, so unless you get truly stupendous amout of incoming records once<br>in a while and don&#39;t want the file to be 2 gigs all he time when usually it
<br>only needs to be 20 megs, I think there is nothing to fix here as long as<br>you are using the processing delete command on each record after processing<br>it.<br><br><br><br>&gt; 2) I have a big night time process that runs
<br>&gt; that has been getting stuck on certain parts<br>&gt; I have a script that runs all these processes<br>&gt; and I have a log that tells me when each individual process starts<br>&gt; so I have an idea where it&#39;s getting stuck
<br>&gt; but it&#39;s getting stuck on different processes randomly<br>&gt; how can I set the cron job on a Unix box where it will capture<br>&gt; the error messages that filePro is encountering?<br><br>If you don&#39;t redirect stdout &amp; stderr, they will get collected and emailed
<br>to root.<br><br>Or, you can rdirect stdin, out &amp; err all to one of the unused console tty&#39;s<br>and flip to that screen when you come in in the morning, or use doublevision<br>to view that tty any time from anywhere.
<br><br>crontab -e<br>30 2 * * * myscript &lt;/dev/tty12 &gt;/dev/tty12 2&gt;&amp;1<br><br>Then hit Alt-F12, or Ctrl-Alt-F12 if the console was in X (the scologin<br>gui).<br>You can flip to that screen any time before during or after the cron job
<br>runs. It will just be black before, and will be inactive, but with the last<br>output of the script on it, afterwards if the script completed normally. If<br>the script hun and is waiting for user input, then the screen will still be
<br>active, the script will still be running and you&#39;ll be able to interact with<br>it and supply whatever user input it&#39;s expecting.<br><br>If it&#39;s just hung on locked records (pretty common)<br>then you can set 2 environment variables in the script before any
<br>clerk/report commands<br>PFMBTO=1 ; export PFMBTO<br>PFSKIPLOCKED=1 ; export PFSKIPLOCKED<br>That will cause fp to proceed past most common halts.<br>Though beware, only you can say if skipping locked records is ok for the
<br>reports in question!<br>Consider: Your process is cycling through the days invoices, and needs to<br>lookup into the customer file for each one, and someone went home with your<br>biggest customers account open on their screen in update mode, and so that
<br>lookup fails on most of the invoices for that the day as if there were no<br>such customer...<br><br>The proper fix might be to somehow ensure that all users or at least all<br>filepro processes are out of the system before starting the script. A cheap
<br>way to start might be to use the idleout utility in sco. just type &quot;idleout<br>120&quot;, and until the next reboot, any tty that sits idle for 2 hours will be<br>killed. If everyone usually goes home by 8pm and the script doesn&#39;t run
<br>until midnight, this might clear up most of the problem most of the time.<br><br>I would not set those variables first or use idleout at first, but see what<br>the captured messages indicate first. It may be something completely
<br>unrelated to locked records.<br><br>Brian K. White&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:brian@aljex.com">brian@aljex.com</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.myspace.com/KEYofR">http://www.myspace.com/KEYofR</a><br>+++++[&gt;+++[&gt;+++++&gt;+++++++&lt;&lt;-]&lt;-]&gt;&gt;+.&gt;.+++++.+++++++.-.[&gt;+&lt;---]&gt;++.
<br>filePro&nbsp;&nbsp;BBx&nbsp;&nbsp;&nbsp;&nbsp;Linux&nbsp;&nbsp;SCO&nbsp;&nbsp;FreeBSD&nbsp;&nbsp;&nbsp;&nbsp;#callahans&nbsp;&nbsp;Satriani&nbsp;&nbsp;Filk!<br><br>_______________________________________________<br>Filepro-list mailing list<br><a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com
</a><br><a href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br></blockquote></div><br>