I have shell/perl script which kicks off
cat commands to receive incoming serial data from an external device.
The external device is designed to send to send an EOT character when it's done transmitting. But the
cat command never terminates upon receiving EOT, in fact it prints out the all the serial data, followed by the little box with (0004) which is hex value for EOT.
When I pipe all this data into file and open it up in VIM, I do see the EOT char represented by
I would like to why would the cat command on terminal not detect the EOT?
stty --all --file=(serial_port) yeilds:
speed 115200 baud; rows 0; columns 0; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <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 -cdtrdsr -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8 -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