Using trap command (was: Exceeded User Count)

Lerebours, Jose Jose.Lerebours at EagleGL.com
Fri Feb 11 08:27:57 PST 2005


> > This is revealing to me ... and possibly the answer to all those
> > "<defunct>" processes I've seen in a couple of places.
> > 
> > I normally use `trap` as well to keep user within a shell script
> > where a qualifier is chosen and filePro application is opened with
> > chosen qualifier.
> > 
> > Removing the `trap` command causes the script to close if user
> > exits filePro pressing DEL key.
> > 
> > Am I caught in a loose/loose situation or is there a remedy?
> 
> You can "tighten things up" by not telling it to ignore 
> SIGHUP.  Just tell
> it to ignore only SIGINT and SIGQUIT.  In other words, instead of:
> 
>     trap "" 1 2 3
> 
> use
> 
>     trap "" 2 3
> 

I will give this a try ... Thanks!



Jose


More information about the Filepro-list mailing list