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

[Feature Request] - named pipe support #279

Open
1 task done
red-daut opened this issue Mar 4, 2024 · 0 comments
Open
1 task done

[Feature Request] - named pipe support #279

red-daut opened this issue Mar 4, 2024 · 0 comments

Comments

@red-daut
Copy link

red-daut commented Mar 4, 2024

Is there an existing feature request for this?

  • I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

Add the ability to read in from a named pipe to allow for sending commands to the MSH console through scripting.

Describe the solution you'd like.

When I try to send commands from my bash script to the MSH console, the response from MSH is [warn ≡≡≡ ] GetInput: stdin unavailable, exiting input goroutine [07f102] - Since stdin is unavailable, adding named pipe support that reads into MSH would allow sending commands to MSH from scripts.

Additional context to this request.

I am creating an egg in Pterodactyl which uses MSH. Once the eula has been accepted as part of the installation process (through the Pterodactyl prompt or manual creation of the eula.txt file) the server needs to be restarted before anyone can join.

I am attempting to automate this restart (of MSH) through the scripting in the egg I am creating. In my script, I am able to use the awk command to look for the console output listening for new clients connections from MSH and then send a system command such as msh exit. Upon this exit, Pterodactyl will automatically restart the server.

The problem is my script can't send commands to MSH due to stdin being unavailable. Adding support for a named pipe to MSH will solve this problem.

Once this issue is solved, it would mean the server would be ready to join, using MSH, without any end user manual intervention.

@red-daut red-daut changed the title named pipe support [Feature Request] - named pipe support Mar 4, 2024
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

1 participant