<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1250">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Tahoma size=2>Walter Vaughan<SPAN class=359372416-05062008><FONT 
face=Arial color=#0000ff>&nbsp; <FONT 
color=#000000>wrote</FONT>&nbsp;</FONT></SPAN>Thursday, June 05, 2008 11:48 
AM<SPAN class=359372416-05062008><FONT face=Arial 
color=#0000ff>&nbsp;:&nbsp;</FONT></SPAN><BR></FONT></DIV>Bruce Easton 
wrote:<BR>
<BLOCKQUOTE cite=midBBEALIBBDKJHFKICDGELMENIFHAA.bruce@stn.com type="cite"><PRE wrap="">Robert Pulliam wrote Thu, 5 Jun 2008 10:30:52 -0400:

 I  have employees who are key pounders.  AT the end of the day   
 there is a process - ie a batch file with 35 command lines
 that must be executed every day.  If they hit the enter key twice or  
 more with their pounding this process runs exactly that many times.  
 Using filepro - sco unix.  Is there a unix command that would   
 intercept the multiple enters or could i exit the entire batch file   
 with a filepro command.
    </PRE><PRE wrap=""><!---->Is there a way to make the script so that only the entry of a 
specific word will allow the process to go on the the next step?

(Like having the user enter 'dostep1' to make it do the first step - 
any other word or enter would just make it stay at that step.)</PRE></BLOCKQUOTE>
<DIV>Or create a counter file that keeps track of how many times the batch is 
run, and<BR>toss up an error message if the batch has already been run.<SPAN 
class=359372416-05062008><FONT face=Arial color=#0000ff 
size=2>&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008></SPAN>&nbsp;</DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial size=2>Yeah, as long as you 
don't just require a return after the error message to let 
it&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial size=2>go around again. 
:)&nbsp;&nbsp; (I'm still paranoid after that keyboard buffer dump the 
cat&nbsp;gave&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial size=2>me as a gift that 
day&nbsp;by right-clicking my mouse.:))</FONT>&nbsp;<FONT face=Arial 
size=2>&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial size=2>If thinking of 
implementing a counter file or similar to track runs in a day, might also 
</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial size=2>consider writing out 
the run stats into a log file - like who ran it, start/end time, 
</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial size=2>phase completion 
IDs, etc.</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial 
size=2>Bruce</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial size=2>Bruce Easton<BR>STN, 
Inc.</FONT></SPAN></DIV>
<DIV><SPAN class=359372416-05062008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=359372416-05062008></SPAN>&nbsp;</DIV>
<DIV><BR></DIV></BODY></HTML>