Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
IPC::Open3: differences among replies of a background processby cramdorgi (Acolyte) |
on Dec 13, 2008 at 22:05 UTC ( [id://730212]=perlquestion: print w/replies, xml ) | Need Help?? |
cramdorgi has asked for the wisdom of the Perl Monks concerning the following question:
I work on a CPAN module interfacing the proprietary 'cleartool': ClearCase::Argv I am interested in the mode in which it forks a background process, using IPC::Open3, and sends it requests. This works mostly fine, but I now meet a problem on Windows, and specifically with interactive comments: certain commands will request a comment from the user. My problem: the mechanism which successfully reads the replies fails to return me the prompt: it hangs. I don't know what to suspect: flushing, line termination...? The code works on unix, and on Windows for non interactive commands. Here are a few shell inliners showing the problem. The 'layer' used with binmode affects as well (:crlf, :win32 :utf8, etc.). Most cases, I had to interrupt. The others returned, but with no visible ouput (CR evaluation?) My prompt shows the drive mapped to a ClearCase 'dynamic view'. The command I use replaces a comment in a README file found locally. I give first an example of the dialog as it happens directly on the command line. I end my answer with a line containing a single '.'. The 'prompt' I expect to read is thus here 'Comment for "README":' Do I miss something obvious? Non obvious? Thanks, Marc
Back to
Seekers of Perl Wisdom
|
|