Sponsored Content
Top Forums Shell Programming and Scripting [Solved] Perl, Deep recursion? exit() ignored? Post 302889201 by zaxxon on Wednesday 19th of February 2014 10:31:29 AM
Old 02-19-2014
I got it, print_err() has also a call to log_me(), which kept it in that loop. Didn't see that for more than an hour...

Thanks a lot all for having a look into. In the end the problem sits in front of the keyboard, as usual Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PERL: Trapping EXIT

Hey Everyone, Just starting with PERL (5.8.2) after years of KSH. Is there a way to trap the exit as you can in KSH (i.e., "trap EXIT_SCRIPT EXIT")? Thanks in advance for any help, gsatch (4 Replies)
Discussion started by: gsatch
4 Replies

2. Shell Programming and Scripting

recursion too deep

I am running a korn shell script which has a recursive function. The script ran for 117 iterations and ended up with the following error "recursion too deep". what should be done to avert this? Thanks in advance Swamy p.s. I am on UNIX MPRAS V4 (3 Replies)
Discussion started by: swamy455
3 Replies

3. Shell Programming and Scripting

How to get exit status codes in bash from Perl?

I apologize if I have already posted this query. I scanned back quite a few pages but could not find such a query. If my perl code contains "exit(33)" how can I get that value in bash for use in a "if" statement. Thanks, Siegfried (5 Replies)
Discussion started by: siegfried
5 Replies

4. Shell Programming and Scripting

exit ststus 9 from perl system command

HI all, can anyone tell me what does exit status 9 from perl's system function meant. I am using system fuction to execute a shell script as : my $s=system ('script.sh' ,arg1 ,arg2); print $s; the output is 9. Thanks in advance. !!:confused: (1 Reply)
Discussion started by: glamo_2312
1 Replies

5. Shell Programming and Scripting

Perl | catching the letter 'Q' for exit.

Hi all, I made a simple script with a prompt menu in Perl. All working good, but I want to add an option while the program is running that on every time when the user press 'Q' the program will exit. I know I can use $SIG{'INT'} or any other %SIG option. This option is a unix signal which I... (3 Replies)
Discussion started by: RedGrinGo
3 Replies

6. HP-UX

[Solved] ssh debug1: Exit status 254 problem

Hello; Am experiencing odd problem with ssh: ========= ssh -vvv remote_host : : debug2: channel 0: rcvd adjust 65536 debug2: channel_input_status_confirm: type 99 id 0 debug2: shell request accepted on channel 0 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0... (4 Replies)
Discussion started by: delphys
4 Replies

7. UNIX for Dummies Questions & Answers

[Solved] Simple while loop does not exit

spath="/home/user/k/${1}" dpath="/home/user/seq/Nov17/${1}" cd $dpath ls -1 $spath > list c=1 while read list newlist=`echo $list | sed 's/.gz//' ` newnewlist=`echo $newlist | sed 's/.fastq//' ` do echo $c echo $list c=$(($c+1)) (6 Replies)
Discussion started by: analyst
6 Replies

8. Shell Programming and Scripting

Perl Question Grep and exit status

Im being forced to write in perl. I prefer KSH or Expect, so I suppose its time to become more fluent with perl. I have the following problem. I want to loop through Filea and check that each line in Filea is resident in Fileb. Filea contents two four six eight houseboat Fileb... (4 Replies)
Discussion started by: sumguy
4 Replies

9. Shell Programming and Scripting

[Solved] Rsh does not close connection on exit

Dear all, We have a service that we start up remotely with rsh but unfortunately, the rsh never returns to the calling server. This seems to be because the processes of the service we've just started hold the port open.RBATTE1 @ /home/RBATTE1>netstat -na|grep 49.51 tcp4 0 0 ... (1 Reply)
Discussion started by: rbatte1
1 Replies

10. Programming

Perl: trap signal 'exit': why I am not able to have it work??

First time trying to work with signals in Perl. Reviewing example I try it, but not able to get it work for 'exit'. I hope, I am correct, assuming, that the ending any code by exit $return_code; the $SIG{EXIT} should be de-referenced and processed?! So, I have such code, that, I assume,... (5 Replies)
Discussion started by: alex_5161
5 Replies
XGrabKeyboard(3X11)						     MIT X11R4						       XGrabKeyboard(3X11)

Name
       XGrabKeyboard, XUngrabKeyboard - grab the keyboard

Syntax
       int XGrabKeyboard(display, grab_window, owner_events, pointer_mode, keyboard_mode, time)
	  Display *display;
	  Window grab_window;
	  Bool owner_events;
	  int pointer_mode, keyboard_mode;
	  Time time;

       XUngrabKeyboard(display, time)
	  Display *display;
	  Time time;

Arguments
       display	 Specifies the connection to the X server.

       grab_window
		 Specifies the grab window.

       keyboard_mode
		 Specifies further processing of keyboard events.  You can pass or

       owner_events
		 Specifies a Boolean value that indicates whether the keyboard events are to be reported as usual.

       pointer_mode
		 Specifies further processing of pointer events.  You can pass or

       time	 Specifies the time.  You can pass either a timestamp or

Description
       The function actively grabs control of the keyboard and generates and events.  Further key events are reported only to the grabbing client.
       overrides any active keyboard grab by this client.  If owner_events is all generated key events are reported with respect to grab_window.
       If owner_events is and if a generated key event would normally be reported to this client, it is reported normally; otherwise, the event is
       reported with respect to the grab_window.  Both and events are always reported, independent of any event selection made by the client.

       If the keyboard_mode argument is keyboard event processing continues as usual.  If the keyboard is currently frozen by this client, then
       processing of keyboard events is resumed.  If the keyboard_mode argument is the state of the keyboard (as seen by client applications)
       appears to freeze, and the X server generates no further keyboard events until the grabbing client issues a releasing call or until the
       keyboard grab is released.  Actual keyboard changes are not lost while the keyboard is frozen; they are simply queued in the server for
       later processing.

       If pointer_mode is pointer event processing is unaffected by activation of the grab.  If pointer_mode is the state of the pointer (as seen
       by client applications) appears to freeze, and the X server generates no further pointer events until the grabbing client issues a releas-
       ing call or until the keyboard grab is released.  Actual pointer changes are not lost while the pointer is frozen; they are simply queued
       in the server for later processing.

       If the keyboard is actively grabbed by some other client, fails and returns If grab_window is not viewable, it fails and returns If the
       keyboard is frozen by an active grab of another client, it fails and returns If the specified time is earlier than the last-keyboard-grab
       time or later than the current X server time, it fails and returns Otherwise, the last-keyboard-grab time is set to the specified time is
       replaced by the current X server time).

       can generate and errors.

       The function releases the keyboard and any queued events if this client has it actively grabbed from either or does not release the key-
       board and any queued events if the specified time is earlier than the last-keyboard-grab time or is later than the current X server time.
       It also generates and events.  The X server automatically performs an request if the event window for an active keyboard grab becomes not
       viewable.

Diagnostics
       Some numeric value falls outside the range of values accepted by the request.
		 Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
		 defined as a set of alternatives can generate this error.

       A value for a Window argument does not name a defined Window.

See Also
       XAllowEvents(3X11), XGrabButton(3X11), XGrabKey(3X11), XGrabPointer(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

															       XGrabKeyboard(3X11)
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy