[Crash-utility] issues at MORE prompt in running "ps" command on crash from within another C program

Nayna Jain jainnayna at gmail.com
Sun Apr 8 15:47:59 UTC 2012


Hi,

I am trying to provide a console from within Eclipse IDE for crash.
This way they can execute commands on crash prompt from within Eclipse.

To make this work, first I tried to write a simple C program which invokes
crash from within the program on a tty.
It uses forkpty for this purpose and then execv the crash.

It works fine, crash prompt is reached.
few commands having small outputs works fine.

But commands like ps which works along with "more" to do paging of output
has issue.
When it stops at the line of MORE.. expecting input from user like SPACE,
q, b etc., it doesn't recognize it directly.
I have to type SPACE and then ENTER. q and then ENTER.
What termios setting is required to make it work ? Can someone please help
with this issue ? How do I make it recognize SPACE, q , at MORE prompt.?

-- 
Courage is not the absence of fear but rather the judgment that something
is more important than fear. The brave may not live forever but the
cautious do not live at all. -- The Princess Diaries
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120408/462b260b/attachment.htm>


More information about the Crash-utility mailing list