[GH-ISSUE #753] 会话连接前的脚本不运行 #617

Closed
opened 2026-02-26 11:59:02 +03:00 by kerem · 3 comments
Owner

Originally created by @wuq5789 on GitHub (Nov 5, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/753

Originally assigned to: @VShawn on GitHub.

Describe the bug
会话连接前的脚本不运行

To Reproduce
Steps to reproduce the behavior:
1.我要一SSH会话中添加“会话连接前脚本”,内容为ping 127.0.0.1
2. 在1Remonte添加页面测试是正常的。在任务管理器中可以看到ping这个进程
3.但在保存后,,我打开这个SSH会话,查看任务管理器中并没有ping进程在运行

Expected behavior
会话运行过程中,任务管理器并无相关脚本的进程。

Screenshots
image

Desktop (please complete the following information):

  • OS: win11 企业版
  • PRemoteM Version [e.g. 1.0]

Additional context
Add any other context about the problem here.4. 同时我另一个脚本,内容为
5. ssh.exe -iC:\Users\ROY_xin\OneDrive\PROJECTS\cloudSDP\ssh_cloudSDP -Nf -L 31022:Bhost:22 root@Ahost
6、同样测试正常,但在保存并运行,查看任务管理器中并没有SSH进程在运行

Originally created by @wuq5789 on GitHub (Nov 5, 2024). Original GitHub issue: https://github.com/1Remote/1Remote/issues/753 Originally assigned to: @VShawn on GitHub. **Describe the bug** 会话连接前的脚本不运行 **To Reproduce** Steps to reproduce the behavior: 1.我要一SSH会话中添加“会话连接前脚本”,内容为ping 127.0.0.1 2. 在1Remonte添加页面测试是正常的。在任务管理器中可以看到ping这个进程 3.但在保存后,,我打开这个SSH会话,查看任务管理器中并没有ping进程在运行 **Expected behavior** 会话运行过程中,任务管理器并无相关脚本的进程。 **Screenshots** ![image](https://github.com/user-attachments/assets/b74b4af3-42d8-4ccd-9c07-f781ab6d957d) **Desktop (please complete the following information):** - OS: win11 企业版 - PRemoteM Version [e.g. 1.0] **Additional context** Add any other context about the problem here.4. 同时我另一个脚本,内容为 5. ssh.exe -iC:\Users\ROY_xin\OneDrive\PROJECTS\cloudSDP\ssh_cloudSDP -Nf -L 31022:Bhost:22 root@Ahost 6、同样测试正常,但在保存并运行,查看任务管理器中并没有SSH进程在运行
kerem 2026-02-26 11:59:02 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VShawn commented on GitHub (Nov 6, 2024):

https://github.com/user-attachments/assets/0db1a5f4-419a-461b-be6a-83d4bf32e75a

经测试运行正常。

<!-- gh-comment-id:2458800602 --> @VShawn commented on GitHub (Nov 6, 2024): https://github.com/user-attachments/assets/0db1a5f4-419a-461b-be6a-83d4bf32e75a 经测试运行正常。
Author
Owner

@VShawn commented on GitHub (Nov 6, 2024):

发现问题了,是相比Win10,Win11中系统的CMD被改成了多标签的终端,于是脚本被执行在终端上,而因此没有被显示出来,实际上脚本是被执行了的。

image

如果把 IP 改为一个 PING 不通的 IP,就会弹出脚本执行失败的提示。

image

<!-- gh-comment-id:2459000910 --> @VShawn commented on GitHub (Nov 6, 2024): 发现问题了,是相比Win10,Win11中系统的CMD被改成了多标签的终端,于是脚本被执行在终端上,而因此没有被显示出来,实际上脚本是被执行了的。 ![image](https://github.com/user-attachments/assets/5403bf50-2e3e-48f1-ae1e-77385f5abdfd) 如果把 IP 改为一个 PING 不通的 IP,就会弹出脚本执行失败的提示。 ![image](https://github.com/user-attachments/assets/6cd2af2d-cbd5-447c-ae7d-a5566e026873)
Author
Owner

@VShawn commented on GitHub (Nov 7, 2024):

I think I fixed it

https://github.com/user-attachments/assets/679de829-9cd1-43a9-84fd-0e23668a3f44

<!-- gh-comment-id:2461589945 --> @VShawn commented on GitHub (Nov 7, 2024): I think I fixed it https://github.com/user-attachments/assets/679de829-9cd1-43a9-84fd-0e23668a3f44
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#617
No description provided.