You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
Say, I run cat /proc/kmsg as a root user on the interfactive SSH shell spawned by SpawnWithArgs, but it will hangs for ever (since you wouldn't cat anything from the magic file /proc/kmsg even as root), so no following commands sent to this SSH shell will not be executed by the SSH shell since it is haning on. I'd like invoke Ctrl-C in this SSH shell spawned by goexpect to stop cat progress clearing the shell, just like what we will do in an actual one.
Say, I run
cat /proc/kmsgas a root user on the interfactive SSH shell spawned bySpawnWithArgs, but it will hangs for ever (since you wouldn't cat anything from the magic file/proc/kmsgeven as root), so no following commands sent to this SSH shell will not be executed by the SSH shell since it is haning on. I'd like invokeCtrl-Cin this SSH shell spawned bygoexpectto stopcatprogress clearing the shell, just like what we will do in an actual one.I've tried
\003(by callingexp.Write()) wouldn't work.SendSignalbatcher seems send signals to the SSH progress itself, not sheSHELLinside the SSH session.Are there any ways to do this? What did I miss here?