Re: SSh/Interrupt key
Joe Lewinski <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
This may be as simple as setting
the fglrun.signalOOB = 1 in the /fgl2c/etc/fglprofile on your server.
The lines below explain what this does.
205 ##################
206 # On Unix, number of the signal received by a process when an
Out-of-Band is
207 # received on a socket. When the interrupt key is use on a
graphical client,
208 # we send an OOB in the socket:
209 # 0 - default signal is received when an OOB is sent to the program.
210 # -1 - To test the signal received when an OOB is sent to the program
211 # >0 - value which you receive when an OOB is sent to the program.
212 # (see documentation for more informations)
213 # Default value: 0
214
215 #fglrun.signalOOB = 0
216
At 10:36 AM 5/10/2005, you wrote:
>Hi All
>
>
>I'm having problems with ssh/putty/interrupt key.
>
>During the search of the database, the user needs to cancel the search
>I have a progress bar form with interrupt button in it. This is my form code:
>SCHEMA FORMONLY
>LAYOUT (TEXT="Searching......")
>GROUP
>VBOX
>GRID
>{
>[LBLprogress|pb ]
>
>[sline ]
> [i]
>}
>END -- GRID
>END -- VBOX
>END -- GROUP
>END -- LAYOUT
>ATTRIBUTES
>LABEL sline = FORMONLY.status_line;
>PROGRESSBAR pb = FORMONLY.progress_bar,VALUEMIN=1,VALUEMAX=100;
>LABEL LBLprogress : TEXT="Progress", JUSTIFY=RIGHT;
>BUTTON i:interrupt, TEXT="Cancel", IMAGE="cancel";
>END
>
>I have this set in the program:
> DEFER INTERRUPT
> OPTIONS SQL INTERRUPT ON
> LET INT_FLAG = FALSE
>
>I have this check after the SQL statement
> IF INT_FLAG THEN
> DISPLAY "Query was interrupted by user"
> END IF
>
>When the user clicks on the cancel button as many times as they can, the
>interrupt key is not working. Further more this operation is working fine
>with rlogin.
>
>I did echo the SSH_TTY and SHELL and they are set during the ssh login.
>Note: we use ssh port forwarding option..
>
>Any idea?
>Thanks Kindly,
>Ahmed Ali
>a50f0779.gif
>
>
>
>
Joe Lewinski
ICANON Associates, Inc.
Phone: 215.822.5519 Fax: 215.822.5523
P L E A S E ** Join us at the Newzware User Group in New Orleans,
May 12 & 13. Ask any ICANON representative for details, or visit
http://www.newzware.com for more information.
a50f0779.gif
(image/gif, 1.6 KB) - not displayed