USER question
Bill Campbell
bill at celestial.com
Tue Dec 16 13:58:49 PST 2008
On Tue, Dec 16, 2008, Fairlight wrote:
>Is it possible to generate EOF on the outgoing stream to a program without
>closing the entire USER session? Likewise, how do you detect EOF on the
>incoming stream from USER if the external isn't purposely built for use
>with fP?
Ken has already addressed the EOF question.
The only thing I've done that may be similar is dealing with
input from devices which don't get closed properly. In those
cases I have set an alarm, and all it closed after some period of
inactivity.
I do this when printing checks from RealWorld COBOL software that
(a) is hard coded to a /dev/lp? device, and (b) opens and closes
the COBOL file for every line printed. I replace the device with
a named pipe, and have a perl process that continually reads that
device, terminating a logical print job after some specified time
out interval.
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186
With Congress, every time they make a joke it's a law; and every time
they make a law it's a joke.
-- Will Rogers
More information about the Filepro-list
mailing list