0

I have a Perl script that calls a command line application created in .Net. The .Net application doesn't like being called from the script, it gives the error.

"Unhandled Exception: System.Exception: Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read."

Other than complaining about not having the console, the application works ok.

I'm using back ticks to run the application but I've also tried open, system and exec. Is there any other way I can fool the .net application to think it's being run from the console.

1 Answer 1

1

You want a pseudo terminal. See Expect and the underlying IO::Pty.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.