[GH-ISSUE #42] Pre connection shell script #2912

Closed
opened 2026-03-13 00:10:26 +03:00 by kerem · 4 comments
Owner

Originally created by @majkinetor on GitHub (Dec 24, 2020).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/42

Originally assigned to: @VShawn on GitHub.

It would be great to have an option to execute shell script before connecting.

For example, it could be used to connect to VPN network or change hosts file.

Originally created by @majkinetor on GitHub (Dec 24, 2020). Original GitHub issue: https://github.com/1Remote/1Remote/issues/42 Originally assigned to: @VShawn on GitHub. It would be great to have an option to execute shell script before connecting. For example, it could be used to connect to VPN network or change hosts file.
Author
Owner

@VShawn commented on GitHub (Dec 25, 2020):

ok, now we need options for

  • powershell script before connect
  • powershell script after connect (not work for external app who will not notify us when its session is connected e.g. KiTTY)
  • powershell script after window close
<!-- gh-comment-id:751146703 --> @VShawn commented on GitHub (Dec 25, 2020): ok, now we need options for - powershell script before connect - powershell script after connect (not work for external app who will not notify us when its session is connected e.g. KiTTY) - powershell script after window close
Author
Owner

@majkinetor commented on GitHub (Dec 25, 2020):

Better, one script receiving $Event as a parameter.

powershell script after connect (not work for external app who will not notify us when its session is connected e.g. KiTTY)

Maybe we can make it work even in that case. One thing that comes to mind is setting the kitty title from within kitty script and then looking for it locally as a marker.

<!-- gh-comment-id:751210221 --> @majkinetor commented on GitHub (Dec 25, 2020): Better, one script receiving `$Event` as a parameter. > powershell script after connect (not work for external app who will not notify us when its session is connected e.g. KiTTY) Maybe we can make it work even in that case. One thing that comes to mind is setting the kitty title from within kitty script and then looking for it locally as a marker.
Author
Owner

@majkinetor commented on GitHub (Jan 16, 2021):

Should this be closed and part of 0.5.8 milestone ?

<!-- gh-comment-id:761592347 --> @majkinetor commented on GitHub (Jan 16, 2021): Should this be closed and part of 0.5.8 milestone ?
Author
Owner

@VShawn commented on GitHub (Jan 17, 2021):

I don't know if this can be considered as complete, now only cmd commands are supported, and only commands executed before connection are supported. That‘s why I didn't close it yet.

<!-- gh-comment-id:761715106 --> @VShawn commented on GitHub (Jan 17, 2021): I don't know if this can be considered as complete, now only cmd commands are supported, and only commands executed before connection are supported. That‘s why I didn't close it yet.
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#2912
No description provided.