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

Using mvnsh processes standard in file descriptor to send commands #6

Open
abargnesi opened this issue Aug 26, 2014 · 1 comment
Open

Comments

@abargnesi
Copy link

I would like to control mvnsh by sending commands to the process from scripts. For example if I have the mvnsh process id of 18450 then I would send a command to standard in like:

printf "mvn package\n" > /proc/18450/fd/0

However this only echoes "mvn package" to the mvnsh terminal followed by a line feed. This makes sense because standard in points to the terminal for the mvnsh process.

Can mvnsh be configured to read commands from a named pipe instead? This way one could script commands to the mvnsh process and still be able to eliminate JVM boot time.

@jdillon
Copy link
Owner

jdillon commented Apr 25, 2017

I suppose its technically possible, though wasn't really designed to do that :-\

Unless use of FD was a requirement, would be much easier (and portable) to implement with a simple tcp-socket server.

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

2 participants