DISPLAY in auto
John Esak
john at valar.com
Tue Jul 20 20:46:41 PDT 2004
>
> On Tue, Jul 20, 2004 at 12:02:01PM -0400, Jay R. Ashworth wrote:
> > In some automatic processing, I'm doing this:
> >
> > :2 ne "":lookup hdr=passhdr k=2 i=1 -nx:
> > :hdr:display 8; sleep "5"; exit "1":
> >
> > Repeated for fields 3 through 8.
> >
> > The lookup part works correctly, but after switching to screen 8 (also
> > correctly), it never exits. I'm testing $? in the calling filepro menu
> > script to decide to skip some posting code, and it's never "1", even if
> > I eXit by hand.
> >
> > Am I doing something wrong here? The manuals seem to suggest that that
> > code fragment ought to do what I want.
>
> And the one time this month *I* actually need to know something, no
> one's talking. Again, bye.
> -- j
> --
> Jay R. Ashworth
> jra at baylink.
Your code should work... you aren't doing anything wrong. Well, you do only
show that you are performing this lookup if 2 has something in it. If it
does not, the line below the lookup will fail with an error. Perhaps, you
have provided for 2 being equal to null above this snippet somewhere... but
in that case you would not need the 2 ne "" on the lookup line "if". Also,
you probably want sleep "5000" instead of sleep "5". As for the exit not
working...
You should be able to test the exit value with $? as you want to do. The
following code worked for me. (It also worked in AUTOMATIC where you say you
are using your code. I tried it in IUA. I tried it in dreport. All worked as
shown below... (which essentially duplicates your code.) I have no answer
but the vastly unsatisfactory one that I could not duplicate your problem.
I'm using 5.18... but I did this exact thing as far back as 4.5 days... I
test for $? all over the place... using EXIT "5", etc.
I hope others do answer your question, but I tested this very thoroughly and
can't repeat the problem your having... good luck anyway.
As for your other posts and good-byes... well, as you like. The only thing
I want to you or anyone to be clear on is I _never_ wanted or tried to make
you "look like a fool" once a week. You brought a lot of my responses on by
just saying things the way you do.... read your "good bye" message again, in
case you are unaware of the way you say things. FilePro (and it's authors)
really suck to you... make that abundantly clear with every line you
write... Still, I have no need or desire to make you look or feel foolish.
You have been quite capable of doing that yourself.
I hope you find out why your "exit" snippet isn't working.
John Esak
More information about the Filepro-list
mailing list