Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3B3D6072.6DFF8A36@lakes.com> Date: Sat, 30 Jun 2001 00:15:30 -0500 From: Perry Dykes X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Unix "script" utility continued... cygwin newbie need a porting expert's help. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ok, I can't give this script thing up. I'm working on it while on vacation. a) Why do I want script to work? Many folks have given alternatives, but I have a pretty hard req for a "Script" like utility: 1) I'm using some NT code that that allows me to launch a bash script, but I can't feed any stream processing steps, such as: bash --login scripttorun.bsh parm1 parm2 | tee IwishIcouldDothis.log 2) Also, some folks (at least 3 so far) have reviewed the expect book and posted a snippet of using expect. While interesting, the major reason I'm not using that is because it only tracks commands as issued, not the output each command throws. b) Where I'm at in the compile of script.c located in util-linux-2.11d: Corinna's reply stated I could use : Open with O_NOCTTY. I did this code, attached below, but get the following error. perry AT PERRYT20 /cygdrive/c/dykes/data/wrk/mkwf/activity-work/typescript/util-linux-2.11d/misc-utils $ gcc -I../lib script.c -o script.exe script.c: In function `main': script.c:125: warning: assignment makes pointer from integer without a cast /cygdrive/c/DOCUME~1/perry/LOCALS~1/Temp/ccIAem9J.o(.text+0x71c):script.c: undefined reference to `cfmakeraw' collect2: ld returned 1 exit status Assuming I can figure out warning or ignore, the ld error has me stumped. Is there a cygwin programmer who knows what this means. I'm not sure how to debug it. I looked through ld man page and other content for references to cfmakeraw, and so far not sure what this is or how to get rid of error. As always your helps is appreciated well in advance. Regards, Perry -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/