Technical posts/UNIX & LINUX
@(골뱅이)가 줄바꿈이 되는경우
ODB
2014. 12. 4. 09:52
HP였나? AIX였나?? 기억은 안남;;
UNIX계열에서 점검시 @를 넣으면 line feed를 해버리는 경우가 있다... 아오..
sqlplus에서 모니터링스크립트를 돌리기 위해서는 '@' 가 필요하기 때문에 문제가 생긴다 ㅜ.ㅜ
$ stty -a speed 38400 baud; line = 0; rows = 24; columns = 130 min = 4; time = 0; intr = DEL; quit = ^\; erase = ^H; kill = @ eof = ^D; eol = ^@; eol2 <undef>; swtch <undef> stop = ^S; start = ^Q; susp <undef>; dsusp <undef> werase <undef>; lnext <undef> -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts -ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc ixon ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak isig icanon -iexten -xcase echo -echoe echok -echonl -noflsh -echoctl -echoprt -echoke -flusho -pendin opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3 |
보시다시피 'kill=@' 읭? intr = DEL도...
kill 은 Erases the entire line.
intr은 Terminates the current job.
intr은 컨트롤C가 되어야 하고
kill은 아무거나 하는데 컨트롤U로
변경을 해주자
stty intr "^c" stty kill "^u"