Skip to content
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

希望能添加一个连接会话后自动执行某个命令的功能 #428

Closed
heisetanghulu opened this issue Jan 7, 2022 · 8 comments
Closed

Comments

@heisetanghulu
Copy link

在测试环境,看日志比较多,但不同微服务日志目录不同,希望可以添加一个像xshell那样的功能,每个会话可以设置一个连接后自动执行的命令,比如进入到某个目录的命令,会方便很多

@Vectorsmiracle
Copy link

有这个功能
image

@heisetanghulu
Copy link
Author

有这个功能 image

多谢,我还以为没这个功能

@kingToolbox
Copy link
Owner

Both SSH and Shell have the feature of automatically executing specified commands after startup.

  • Shell: Session Settings Dialog - Shell - Shell - Process - Execute command after start.
  • SSH: Session Settings Dialog - SSH - SSH - Authentication - Execute command after authentication.

If you need to execute multiple commands, you can write them to a .bat or .sh file and then execute the script file.

@drcege
Copy link

drcege commented Jan 26, 2022

SSH 登录后自动执行命令的时间太早了,这时候服务器还没加载完,所以这个命令根本没法成功执行。
希望能加一个延时设置,等SSH登录完毕后再执行命令。

@kingToolbox
Copy link
Owner

@drcege
I am happy to inform you that WindTerm_2.4.0_Prerelease_2 has been released and delayed sending of commands has been added. Please download and check it, thank you.

@Y2Kai
Copy link

Y2Kai commented Aug 10, 2022

认证后执行命令,命令显示出来,但是没有执行

@CcccFz
Copy link

CcccFz commented Oct 9, 2022

@Y2Kai 在命令后面加个\n(linux)或\r(powershell)就可以执行

@C370228492
Copy link

C370228492 commented Mar 20, 2024

请问如何支持执行多个命令? 期望"启动后执行命令(E)"文本框从单行输入改成多行输入. 类似快速命令的录入和执行方式一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants