MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/local/ssl/lib64/expect5.43/cat-buffers
#!expect --
# Synopsis: fixcat
# Author: Don Libes

# Description: test to see if /bin/cat is unbuffered (i.e., -u is needed)
# Return 0 if buffered, 1 if unbuffered.
#
# If this file is sitting in an architecture-specific library directory,
# then it serves as a marker that your /bin/cat buffers by default.

# XXX Red Hat linux has unbuffered cat
exit 0

# test for when catting to/from files
#log_user 0
#spawn -open [open "|cat" "r+"]
#send "\r"
#expect "\r" {exit 1}

# test for when catting to real tty
#log_user 0
#spawn /bin/cat
#send "\r"
#expect "\r\n\r\n" {exit 1}