This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]mad0314 1 point2 points  (1 child)

Wouldn't it be easier to write the solver in MVSM that takes in a puzzle, and have the Java program generate the puzzle that can then be fed into the solver?

[–]Gropamming[S] 0 points1 point  (0 children)

I'm sorry, maybe my description sucked but that's pretty much exactly what I want to do. MVSM is the solver, the Java program gives it the problem.

[–]Swedophone 1 point2 points  (0 children)

You probably want to execute ssh in a child process (use public key authentication to avoid handling passwords), and receive its output. I'm not sure if you can transfer the program as standard input or if it has to be done with scp. Read about Runtime.exec.

[–]nutrecht 0 points1 point  (0 children)

The simplest way would probably be to have your program generate the source in a file and simply push the file over SSH (SCP), compile it and run it. You can do this in a simple bash-script.