From: Mark Goland <[EMAIL PROTECTED]> > In my script I am need to send an explicit EOF to another program, I > open inside my script. Something like this... > > open FH,"| prog that runs"; > > print FH "blah blah"; > > print FH "EOF" # send program EOF. > > I tryd closing the handle , but that didnt work. Any Idea's ??
Try print FH "\n\cZ"; close FH; # under DOS/Win or print FH "\n\cD"; close FH; # undef Unix Whether the program will take that as an EOF I can't tell though. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]