Re: Service logs only when exiting

Jurjen Oskam <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
On Wed, Aug 27, 2003 at 11:59:02AM -0400, Paul Jarc wrote:

> umc seems to be buffering its output.  If you run "umc 2>&1 | cat" at
> a shell prompt, do you get the same batchy behavior?

Yes, I get the same behaviour.

> You might be able to work around this
> using the ptybandage program from ptyget:
> <URL:http://cr.yp.to/software/ptyget-0.50.tar.gz>

This package seems very useful (it would probably solve some things I
currently use expect for), but unfortunately I can't get it to compile:

AIX 4.3.3 with IBM's C for AIX compiler:
(needed to remove #define CONF_SECURE_H and #define PTYGET_SECURE)

        ./compile ptyget.c
"hasptmx.h", line 1: 1506-229 (W) File is empty.
"ptyget.c", line 97.3: 1506-045 (S) Undeclared identifier s.
make: 1254-004 The error code from the last command is 1.

AIX 5.2.0 with gcc version 2.9-aix51-020209:
(needed to remove #define CONF_SECURE_H and #define PTYGET_SECURE)

./compile ptyget.c
ptyget.c: In function `pty45':
ptyget.c:97: `s' undeclared (first use in this function)
ptyget.c:97: (Each undeclared identifier is reported only once
ptyget.c:97: for each function it appears in.)
ptyget.c: In function `main':
ptyget.c:169: warning: return type of `main' is not `int'
make: *** [ptyget.o] Error 1

Linux 2.4.18 (glibc 2.2.5) with gcc 2.95.3:

./compile ptyget.c
ptyget.c:23: sys/stream.h: No such file or directory
ptyget.c:24: sys/ptms.h: No such file or directory
make: *** [ptyget.o] Error 1


So, unfortunately it seems I'm stuck. However, I *am* interested in getting
ptyget to run, also because that seems to be a nice solution to some other
(unrelated) problems I had. I'm not really a C wizard, where can I get help
in getting ptyget to run?

Thanks,

-- 
Jurjen Oskam

PGP Key available at http://www.stupendous.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.