PuTTY plink sending control+C

你。 提交于 2019-12-24 00:53:30

问题


I am using Putty plink command line utility to run a few scripts on my UNIX server. I use the -m option as:

plink -ssh -pw xxx myserver –m file.txt

The file file.txt contains a list of commands that are to be executed and is generated dynamically using some application program. Some of the commands in file.txt can run for hours, which will make the user wait for a long time. Moreover, I am interested in execution of the first line of each of the scripts.

So I want to make sure that a control+c command is sent just after the script is run so that complete script is not run. So instead of using the following in my file.txt:

script1
script2
script3

I want to use:

script1
control+C command
script2
control+C command
script3
control+C command

Can anyone help me in writing this control+c in my file.txt?

Thanks a lot

来源:https://stackoverflow.com/questions/22818414/putty-plink-sending-controlc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!