mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
qemu-monitor: migrate to Python!
Just came across the telnet in the stdlib, and got rid of the ugly expect dependency, nice. Also implement stdin input now that we have a sane language.
This commit is contained in:
@@ -8017,12 +8017,16 @@ or send one command such as `info qtree` and quit the monitor:
|
||||
./qemu-monitor info qtree
|
||||
....
|
||||
|
||||
or equivalently:
|
||||
|
||||
....
|
||||
echo 'info qtree' | ./qemu-monitor
|
||||
....
|
||||
|
||||
Source: link:qemu-monitor[]
|
||||
|
||||
`qemu-monitor` uses the `-monitor` QEMU command line option, which makes the monitor listen from a socket.
|
||||
|
||||
`qemu-monitor` does not support input from an stdin pipe currently, see comments on the source for rationale.
|
||||
|
||||
Alternatively, from text mode:
|
||||
|
||||
....
|
||||
|
||||
Reference in New Issue
Block a user