New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I use panda to interact with a program. #1288
Comments
Hello! Can you show an example of how you're calling In the interim I think an example that may help you is: panda/panda/plugins/signal/test/run.py Line 42 in 5472db2
|
panda = Panda(generic='x86_64_ubuntu_1804')
@panda.queue_blocking
def run_cmd():
panda.revert_sync("root")
panda.copy_to_guest("test")
panda.interact()
panda.run()
There is no output from the program, and no response to input. |
PyPANDA's interactive mode isn't something we've used too much, I honestly forgot it even existed. I think we only ever tested it with very basic shell interactions so there's a good chance there are issues if your program is printing output without newlines or trying to receive input one byte at a time. If you want to try fixing it, feel free. Otherwise, I'd recommend just taking recording of you interacting with the program using the panda cli or |
Let's take this program as an example.
When I copy it to a virtual machine using
panda.copy_to_guest()
and run the program usingpanda.interact()
, I can't interact with it for any input-output.The text was updated successfully, but these errors were encountered: