Sponsored Content
Top Forums UNIX for Advanced & Expert Users Not able to Display the Catched Signal Post 302688681 by fpmurphy on Monday 20th of August 2012 01:09:02 AM
Old 08-20-2012
A TTY terminal device is a character device that performs input and output on a character-by-character basis.

The communication between terminal devices and the programs that read and write to them is controlled by the TTY interface. Examples of TTY devices are ASCII terminal and modems.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

thread::signal

Hi,all! Now ,I write perl for windows platform,and will use signal for asynchronous operations ,but I find it could bring some bugs if it is used incorrectly ,pls help!!! :D (1 Reply)
Discussion started by: hhh101
1 Replies

2. UNIX for Dummies Questions & Answers

Alarm signal

Hi, when I execute a script on unix AIX, I've got an error message: "Execution: 85328 Signal d'alarme". If I edit this file with "vi", I ve got the same error after a while (about 1 minute). If I try with another user I still have the problem. But if I rename this file, no problem. My... (5 Replies)
Discussion started by: cgsteph
5 Replies

3. Shell Programming and Scripting

Signal question

Who can explain the meaning of the &2 &1 or @, #, etc in the script? Is there any document which can explain the usage of these words in details? for example: ls /etc/sysconfig/network > /dev/null 2>&1 #@ bash, ksh and sh. Thanks in advance for ur advice. (1 Reply)
Discussion started by: GCTEII
1 Replies

4. Programming

Signal Problem

I am using the signal function, and passing it a function named quit procedure...I get the following warning.... passing arg2 of signal from incompatible pointer type... void quit_procedure(void); //this is the way i define my prototype... signal(SIGINT, quit_procedure); Please guide... (5 Replies)
Discussion started by: jacques83
5 Replies

5. Shell Programming and Scripting

Killed by signal 15.

Hi all I have Master script, Main script ,and 4 Child script. Master.sh #!/bin/bash /export/home/user/Main.shMain.sh #!/bin/bash /export/home/user/Child1.sh & /export/home/user/Child2.sh & /export/home/user/Child3.sh & /export/home/user/Child4.sh &I run only Master.sh script... (1 Reply)
Discussion started by: almanto
1 Replies

6. UNIX for Dummies Questions & Answers

Trying to block signal

I have this code that doesnt do what it is suppose to do. It should block signal that I send while process is running. I press control+z while this process is running and it should be blocked but it isnt. When i press control+z it gives me this.... + Stopped When I change SIGTSP into SIGINT then... (5 Replies)
Discussion started by: joker40
5 Replies

7. UNIX for Advanced & Expert Users

DISPLAY=local_host:0.0 ; export DISPLAY

Hi, from my Windows Workstation I can connect with PUTTY to an AIX 6.1 unix server. On AIX via PUTTY I run DBCA which has a grphical interface. Then : #DISPLAY=local_host:0.0 ; export DISPLAY $(hostname) $(whoami):/appli/oracle/product/10.2.0/db_1/bin#dbca _X11TransSocketINETConnect()... (12 Replies)
Discussion started by: big123456
12 Replies

8. Programming

queue a signal

A program have to receive signals and work agreed with it, but the process have to receive more than one signal when it is attending other. Those have to be queued to be attended later recived. how can i do that? thanks. (2 Replies)
Discussion started by: marmaster
2 Replies

9. Shell Programming and Scripting

Case signal

Task 1: #!/bin/ksh if then echo "Usage : $0 Signalnumber PID" exit fi case "$1" in 1) echo "Sending SIGHUP signal" kill -SIGHUP $2 ;; 2) echo "Sending SIGINT signal" kill -SIGINT $2 ;; 3) echo "Sending SIGQUIT signal" kill -SIGQUIT $2 (3 Replies)
Discussion started by: Ramesh M
3 Replies
pty(4)							     Kernel Interfaces Manual							    pty(4)

Name
       pty - pseudoterminal driver

Syntax
       pseudo-device pty[n]

Description
       The  driver  provides  support for a device-pair termed a pseudoterminal.  A pseudoterminal is a pair of character devices, a master device
       and a slave device.  The slave device provides processes with an interface identical to	that  described  in  However,  whereas	all  other
       devices	that  provide  the  interface described in have a hardware device of some sort behind them, the slave device has, instead, another
       process manipulating it through the master half of the pseudoterminal.  That is, anything written on the master	device	is  given  to  the
       slave  device as input and anything written on the slave device is presented as input on the master device.  The slave device can be opened
       multiple times, while the master half can be opened only once.

       If no optional n value is given defining the number of pseudoterminal pairs to be configured, 16 pseudoterminal pairs are configured.   All
       pseudoterminal  lines should have a corresponding entry in the /etc/ttys file.  This must be done to insure that logins that use pseudoter-
       minals will be tracked in the utmp and wtmp files.

       The following calls apply only to pseudoterminals:

       TIOCSTOP
	      Stops output to a terminal (for example, like typing CTRL/S).  Takes no parameter.

       TIOCSTART
	      Restarts output (stopped by TIOCSTOP or by typing CTRL/S).  Takes no parameter.

       TIOCPKT
	      Enable/disable packet mode.  Packet mode is enabled by specifying (by reference) a nonzero parameter and disabled by specifying  (by
	      reference)  a  zero  parameter.	When applied to the master side of a pseudoterminal, each subsequent from the terminal will return
	      data written on the slave part of the pseudoterminal preceded by a zero byte (symbolically defined as  TIOCPKT_DATA),  or  a  single
	      byte reflecting control status information.  In the latter case, the byte is an inclusive-or of zero or more of the bits:

	      TIOCPKT_FLUSHREAD
		     whenever the read queue for the terminal is flushed.

	      TIOCPKT_FLUSHWRITE
		     whenever the write queue for the terminal is flushed.

	      TIOCPKT_STOP
		     whenever output to the terminal is stopped by typing CTRL/S.

	      TIOCPKT_START
		     whenever output to the terminal is restarted.

	      TIOCPKT_DOSTOP
		     whenever the stop character is CTRL/S and the start character is CTRL/Q.

	      TIOCPKT_NOSTOP
		     whenever the start and stop characters are not CTRL/S and/or CTRL/Q.

	      This  mode  is used by and to implement a remote-echoed, locally flow-controlled (using CTRL/S or CTRL/Q, or both) remote login with
	      proper back-flushing of output.  It can be used by other similar programs.

       TIOCREMOTE
	      A mode for the master half of a pseudoterminal, independent of TIOCPKT.  This mode causes input to the  pseudoterminal  to  be  flow
	      controlled  and  not  input edited (regardless of the terminal mode).  Each write to the control terminal produces a record boundary
	      for the process reading the terminal.  In normal usage, a write of data is like the data typed as a line on the terminal; a write of
	      0  bytes	is  like  typing  an end-of-file character.  TIOCREMOTE can be used when doing remote line editing in a window manager, or
	      whenever flow-controlled input is required.

       TIOCMASTER
	      Allows the master to have complete control over the pseudoterminal and causes the slave side to sleep until the master  relinquishes
	      control.	This is useful in preventing changes on the pseudoterminal from going undetected and being reset by the master.

Files
       (master pseudoterminals)

       (slave pseudoterminals)

See Also
       tty(4), MAKEDEV(8)

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