Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Crash Utility (http://www.linux-archive.org/crash-utility/)
-   -   clean commnad line from pipe (http://www.linux-archive.org/crash-utility/706846-clean-commnad-line-pipe.html)

qiaonuohan 09-24-2012 07:28 AM

clean commnad line from pipe
 
Hello Dave,

When I try to input gdb command through pipe, I find crash doesn't work
well, like below.

# echo -ne "gdb help
gdb help" | ./crash -s
Undefined command: "". Try "help".
gdb: gdb request failed: help

No source file named help.
gdb: gdb request failed: b help

So I make the patch to clean command, please refer to the patch.

--
--
Regards
Qiao Nuohan


--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility

Dave Anderson 09-24-2012 03:45 PM

clean commnad line from pipe
 
----- Original Message -----
> Hello Dave,
>
> When I try to input gdb command through pipe, I find crash doesn't work
> well, like below.
>
> # echo -ne "gdb help
gdb help" | ./crash -s
> Undefined command: "". Try "help".
> gdb: gdb request failed: help
>
> No source file named help.
> gdb: gdb request failed: b help
>
> So I make the patch to clean command, please refer to the patch.
>
> --
> --
> Regards
> Qiao Nuohan

Sure enough -- queued for crash-6.1.0.

Thanks,
Dave

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility


All times are GMT. The time now is 02:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.