Is there anyway I can link a Java program i were to write to a linux console, Eg the java program runs a command on the computer it is on...
How do I do that
I don't have much experience with Java, sorry...
If it has to run the command only once, you can let the program print the command to the standard output, then use the backtick in the shell.
#!/bin/sh `java yourprogram`
I don't have much experience with Java, sorry...
If it has to run the command only once, you can let the program print the command to the standard output, then use the backtick in the shell.