Sponsored Content
Full Discussion: crtl+D
Top Forums UNIX for Dummies Questions & Answers crtl+D Post 6715 by robocop on Monday 10th of September 2001 11:32:11 PM
Old 09-11-2001
I found this out thru my professor which is what I was looking for:

ctrl-D at the keyboard is treated as an end of input from the keyboard. I had to check for cin.eof() for the ctrl-d signal.


thanks for your reply,
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

crtl-c not working

hello, After I log into a box I run a small script so my backspace works, but after running the script the ctrl-c will not work anymore to break.. Will work before.. The script I run is below... I am on AIX 5.2. Thanks. set -o vi TMOUT=0 export TERM=xterm export HOST=`hostname` export... (4 Replies)
Discussion started by: benefactr
4 Replies

2. Shell Programming and Scripting

Enter Crtl+U character in shell script

hi I have some program which accepts "Crtl+U" input, Now i want to run it thorugh my written script ...all other inputs are accepted but how to supply this input. I am supplying input parameters to the program named EX as below. ================================= main.sh . . EX<<EOF... (3 Replies)
Discussion started by: ashish_uiit
3 Replies

3. UNIX for Dummies Questions & Answers

^ C = crtl+C ??

Why ^ C stands for crtl+C in ubuntu shell? also on gvim the shortcuts come this way too with weird symbols (like +gP). Where can I find a list of those? (1 Reply)
Discussion started by: frs
1 Replies

4. Shell Programming and Scripting

Comparing Data file with Crtl file

Hi, I need to compare a file with its contents matching to that of another file(filename , received date and record count). Lets say has File A original data Ex - 1,abc,1234 2,bcd,4567 3,cde,8901 and File B has details of File A Ex- FILEA.TXT|06/17|2010|3 (filename)|(received... (18 Replies)
Discussion started by: Prashanth B
18 Replies
runit(8)						      System Manager's Manual							  runit(8)

NAME
runit - a UNIX process no 1 SYNOPSIS
runit DESCRIPTION
runit must be run as Unix process no 1. It performs the system's booting, running, and shutdown in three stages: STAGE 1 runit runs /etc/runit/1 and waits for it to terminate. The system's one time tasks are done here. /etc/runit/1 has full control of /dev/console to be able to start an emergency shell if the one time initialization tasks fail. If /etc/runit/1 crashes, or exits 100, runit will skip stage 2 and enter stage 3. STAGE 2 runit runs /etc/runit/2, which should not return until system shutdown; if it crashes, or exits 111, it will be restarted. Normally /etc/runit/2 starts runsvdir(8). runit is able to handle the ctrl-alt-del keyboard request in stage 2, see below. STAGE 3 If runit is told to shutdown the system, or stage 2 returns, it terminates stage 2 if it is running, and runs /etc/runit/3. The systems tasks to shutdown and possibly halt or reboot the system are done here. If stage 3 returns, runit checks if the file /etc/runit/reboot exists and has the execute by owner permission set. If so, the system is rebooted, it's halted otherwise. CTRL-ALT-DEL If runit receives the ctrl-alt-del keyboard request and the file /etc/runit/ctrlaltdel exists and has the execute by owner permission set, runit runs /etc/runit/ctrlaltdel, waits for it to terminate, and then sends itself a CONT signal. SIGNALS
runit only accepts signals in stage 2. If runit receives a CONT signal and the file /etc/runit/stopit exists and has the execute by owner permission set, runit is told to shut- down the system. if runit receives an INT signal, a ctrl-alt-del keyboard request is triggered. SEE ALSO
runit-init(8), runsvdir(8), runsvchdir(8), sv(8), runsv(8), chpst(8), utmpset(8), svlogd(8) http://smarden.org/runit/ AUTHOR
Gerrit Pape <pape@smarden.org> runit(8)
All times are GMT -4. The time now is 04:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy