M
M
MixLtv2020-06-01 18:42:10
Python
MixLtv, 2020-06-01 18:42:10

How to send keyboard shortcut CTRL+Z via ssh?

I am writing a small script to work with ssh.
I use the paramiko library
And I got to the point where I need to send a keyboard shortcut: CTRL Z (type press simultaneously)
https://issue.life/questions/36205970 here I found out one of the sending methods, but when sending "\x26" in the console appears "&"
Are there any options how to fix this.
Ps I'm not writing a new client, just a restart script.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
paran0id, 2020-06-01
@paran0id

ctrl-z sends a SIGTSTP signal, you can not emulate a keyboard shortcut, but send this signal directly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question