Sponsored Content
Top Forums UNIX for Advanced & Expert Users [Solved] Capture network disconnect or hung case Post 302647287 by vibhor_agarwali on Monday 28th of May 2012 03:05:34 AM
Old 05-28-2012
It was pretty simple.
Just caught the SIGHUP & cleaned up the lock.

So many signals in UNIX.
Thanks for the help Smilie
This User Gave Thanks to vibhor_agarwali For This Post:
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

How to capture network traffic

Hi, Can someone give me the clue on how to capture network traffic at gateway. Thanx (2 Replies)
Discussion started by: kayode
2 Replies

2. AIX

Capture Network Packets from AIX

Hi, I am using smitty to create and configure a print queue. I am giving a print of a text file to the print queue created. I am using this in network. How to capture network packets of the print from AIX to the printer and printer to AIX. I tried Wireshark to capture network packets. I am... (16 Replies)
Discussion started by: meeraramanathan
16 Replies

3. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

4. Shell Programming and Scripting

[Solved] Changing to upper case in csh

How can I change a string contained in a variable to upper case using csh ??? ---------- Post updated at 08:39 AM ---------- Previous update was at 08:29 AM ---------- I think I've got it, using tr has solved the problem set opt = ` echo $opt | tr "" "" ` (1 Reply)
Discussion started by: kristinu
1 Replies

5. Shell Programming and Scripting

[Solved] Change Upper case to Lower case in C shell

Is there a command that can switch a character variable from UPPER case to lower case? like foreach AC ( ABC BCD PLL QIO) set ac `COMMAND($AC)` ... end Thanks a lot! (3 Replies)
Discussion started by: rockytodd
3 Replies

6. Shell Programming and Scripting

Disconnect scripts

I think I read that by entering "disconnect <script_name>" somewhere in pppd, that when ppp connection is lost that the named script will be executed. I also see that something similar can be (if I read correctly) in ip-down. Which is correct or are both correct. I want to set off the system... (5 Replies)
Discussion started by: slak0
5 Replies

7. Shell Programming and Scripting

[Solved] Command Substitution and Variable Expansion within a Case

Hello All, I don't write scripts very often, and in this case I am stumped, although it may be a bug in the version of bash I have to use (it's not my system). I want to extract a specific string snippet from a block of text (coming from a log file) that is dependent on a bunch of other... (1 Reply)
Discussion started by: jaimielives
1 Replies

8. Red Hat

[SOLVED] Wireless Network Setup

Hi, I am trying to set up a wireless internet connection on my centos OS (6). I can connect via the copper using the internal LAN but cannot get the wireless connection working. The 2 files that I have configured are: My wpa_supplicant.conf: ctrl_interface=/var/run/wpa_supplicant... (1 Reply)
Discussion started by: Duffs22
1 Replies

9. Shell Programming and Scripting

[Solved] Strange Problem in case statement while shift

Hi, Here is my code as below: test.ksh: ======= #!/bin/ksh option="${1}" while do case $1 in -f) FILE="${2}" echo "File name is $FILE" ;; -d) DIR="${2}" echo "Dir name is $DIR" ;; -*) echo "`basename ${0}`:usage: | " (5 Replies)
Discussion started by: zaq1xsw2
5 Replies

10. Shell Programming and Scripting

Connect once db disconnect after all execution

Hi All, Please see the below code. it is working fine when in 'test_file' have only one emplid. test_file contains only emplid and date, like below ... 0000221|1/12/2003 0000223|1/1/1996 Problem :- when test_file contains more then one records(emplids) it is not giving any errors... (3 Replies)
Discussion started by: krupasindhu18
3 Replies
sigpause(3)						     Library Functions Manual						       sigpause(3)

NAME
sigpause - Provides a compatibility interface to the sigsuspend function LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <signal.h> int sigpause ( int signal_mask ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: sigpause(): XSH4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies which signals to block. DESCRIPTION
The sigpause() function call blocks the signals specified by the signal_mask parameter and then suspends execution of the process until delivery of a signal whose action is either to execute a signal-catching function or to end the process. Signal of value i is blocked if the i-th bit of the mask is set. Only signals with values 1 to 31 can be blocked with the sigpause() function. In addition, the sigpause() function does not allow the SIGKILL, SIGSTOP, or SIGCONT signals to be blocked. If a program attempts to block one of these signals, the sigpause() function gives no indication of the error. The sigpause() function sets the signal mask and waits for an unblocked signal as one atomic operation. This means that signals cannot occur between the operations of setting the mask and waiting for a signal. The sigpause() function is provided for compatibility with older UNIX systems; its function is a subset of the sigsuspend() function. NOTES
[Tru64 UNIX] When compiled in the X/Open UNIX environment, calls to the sigpause() function are internally renamed by prepending _E to the function name. When you are debugging a module that includes the sigpause() function and for which _XOPEN_SOURCE_EXTENDED has been defined, use _Esigpause to refer to the sigpause() call. See standards(5) for information on when the _XOPEN_SOURCE_EXTENDED macro is defined. RETURN VALUES
Upon successful completion, sigpause() returns 0 (zero). Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The sigpause() function sets errno to the specified values for the following conditions: The signal_mask parameter refers to an illegal signal number. [Tru64 UNIX] A signal was caught by the calling process. RELATED INFORMATION
Functions: pause(3), sigaction(2), sigblock(2), sigprocmask(2), sigsuspend(2), sigvec(2) Standards: standards(5) delim off sigpause(3)
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy