to all those who answered, many thanks. i bought the book and downloaded the code from Steven Richard's WEB site. i adapted the code for my use and it works like a bought one. i don't have buffering problems when using FTP nor do i get strange characters when using Telnet when running my own homebred interactive program.
Michael, yep, i work at Fairfax Printers, out at Chullora, in the computer department. regards, Lucas Michael Fox wrote: >Hi ho, > >noticed you a fairfax person :) I use to work for them... your at chullora >right? > >Cheers > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of >Lucas King >Sent: Sunday, 8 September 2002 4:23 >To: [EMAIL PROTECTED] >Subject: [SLUG] buffering problem > > >hello, > >the following is an excerpt from Exploring Expect by Don Libes: > >"Programs using the standard I/O library provided by UNIX automatically >buffer their output when running non-interactively. This causes >problems when you need to see the output immediately." ... it is >possible "to make the programs think they are running interactively, >thereby resolving the buffering problem." > >Don does not go on to say how one makes a program think that it is "talking" >to an interactive interface. > >does anyone know how to do this? in C preferrably. > >regards, > >Lucas > > > > >************************************************************************ >This email and any files transmitted with it may be legally privileged >and confidential. If you are not the intended recipient of this email, >you must not disclose or use the information contained in it. If you >have received this email in error, please notify us by return email and >permanently delete the document. >************************************************************************ > >-- >SLUG - Sydney Linux User's Group - http://slug.org.au/ >More Info: http://lists.slug.org.au/listinfo/slug > ************************************************************************ The information contained in this e-mail message and any accompanying files is or may be confidential.If you are not the intended recipient, any use, dissemination, reliance,forwarding, printing or copying of this e-mail or any attached files is unauthorised.This e-mail is subject to copyright. No part of it should be reproduced,adapted or communicated without the written consent of the copyright owner.If you have received this e-mail in error, please advise the sender immediately by return e-mail, or telephone and delete all copies.Fairfax does not guarantee the accuracy or completeness of any information contained in this e-mail or attached files. Internet communications are not secure, therefore Fairfax does not accept legal responsibility for the contents of this message or attached files. ************************************************************************ -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug