질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

stty 설정이 적용 안될 때

작성자 정보

  • 송원창 작성
  • 작성일

컨텐츠 정보

본문

stty라는 걸로 terminal 설정을 변경했습니다.

변경한 옵션은
eof=^D 를 eof=<undef> 로 바꿨습니다.
 터미널에서 ctrl+D를 눌렀을 때 해당 커넥션이 종료되는데요. 위에 설정으로 단축키를 해제했습니다.그런데 설정하고도 ctrl+d를 누르면 끈기네요.

 설정해본거는 RHE3, fedora core5, solaris 입니다.RHE3랑 fedora core5에서는 설정을 해도 변화가 없는데, solaris 8에서 적용했을 때는 ctrl+D를 눌러도 안끈기네요.그래서 solaris옵션이랑 이리저리 비교가면서 설정을 바꿔봐도 원인이 파악안되네요. 헬프 미~

 아래는 리눅스랑 솔라리스 stty 옵션리스트 입니다.
====================================================================
RHE
====================================================================
%stty -a
speed 9600 baud; rows 34; columns 89; line = 0;
intr = ^C; quit = ^; erase = ^H; kill = ^U; eof = <undef>; eol = <undef>; eol2 = <undef>;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O;
min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc
-ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl
echoke

=====================================================================
Solaris
=====================================================================
%stty -a
speed 38400 baud;
rows = 34; columns = 89; ypixels = 0; xpixels = 0;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^; erase = ^h; kill = ^u;
eof = <undef>; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3

 

관련자료

댓글 3

배준태님의 댓글

  • 배준태
  • 작성일
음...

set  -o ignoreeof 를 /etc/profile에 넣어주시던지 아님 각 계정별로 .profile에 넣어주심될거같네요

ignoreeof = ctrl + d 방지용입니다

참 -o 옵션을 빼면 안됩니다 c쉘을 제외한 다른 쉘들은 -o옵션이 붙어야 적용이됩니다

송원창님의 댓글

  • 송원창
  • 작성일
감사합니다. 되네요. 저는 set ignoreeof하고 왜 안돼지 그랬었네요 . ㅋㅋ
행복하세용.

배준태님의 댓글

  • 배준태
  • 작성일
^_^ 잘되신다니 다행이네요 ^^

저는 매일 행복하게 살고있답니다~~

리눅서들이 많이 활동하실 그날을 위하여....

공지사항


뉴스광장


  • 현재 회원수 :  60,371 명
  • 현재 강좌수 :  37,041 개
  • 현재 접속자 :  345 명