Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!ctisbv!pim From: pim@cti-software.nl (Pim Zandbergen) Newsgroups: comp.unix.aix Subject: Re: AIX 3.1 C compiler needs a tty ? Message-ID: <1990Aug22.164038.10530@cti-software.nl> Date: 22 Aug 90 16:40:38 GMT References: <1990Aug21.113151.7882@cti-software.nl> <14465@diamond.BBN.COM> Organization: CTI Software BV, The Hague, The Netherlands Lines: 62 mlandau@bbn.com (Matthew Landau) writes: >Just how large WAS this "large" make? And how much swap space does your >machine have? It consisted of a couple of hundred relatively small, standalone programs. I don't think this has to do anything with swap space. Just repeat after me: 1) Extract the hello.c program and the loop-cc shell script from the shar archive appended to this article. 2) On terminal #1, type: nohup loop-cc > loop-cc.out 2>&1 & 3) On terminal #2, type: tail -f loop-cc.out 4) Keep watching terminal #2 a few seconds 5) Now log terminal #1 out. 6) Watch terminal #2 again. 7) Answer the question: What gives? :-) #--------------------------------CUT HERE------------------------------------- #! /bin/sh echo 'x - hello.c' if test -f hello.c; then echo 'shar: not overwriting hello.c'; else sed 's/^X//' << '________This_Is_The_END________' > hello.c Xmain() X{ X printf("Hello World!\n"); X} ________This_Is_The_END________ if test `wc -c < hello.c` -ne 38; then echo 'shar: hello.c was damaged during transit (should have been 38 bytes)' fi fi ; : end of overwriting check echo 'x - loop-cc' if test -f loop-cc; then echo 'shar: not overwriting loop-cc'; else sed 's/^X//' << '________This_Is_The_END________' > loop-cc Xwhile : Xdo X cc -o hello hello.c X echo $? X sleep 1 Xdone ________This_Is_The_END________ if test `wc -c < loop-cc` -ne 55; then echo 'shar: loop-cc was damaged during transit (should have been 55 bytes)' fi chmod 755 loop-cc fi ; : end of overwriting check exit 0 -- Pim Zandbergen domain : pim@cti-software.nl CTI Software BV uucp : uunet!mcsun!hp4nl!ctisbv!pim Laan Copes van Cattenburch 70 phone : +31 70 3542302 2585 GD The Hague, The Netherlands fax : +31 70 3512837