Thursday, 19 September 2013

Using Java processbuilder to turn of HDMI tv

Using Java processbuilder to turn of HDMI tv

I would like to send the following command below from a java program, but
not overly bothered about reading the response. any idea how I can do this
the command below turns of the TV through CEC cammand
echo "standby 0000" | cec-client -d 1 -s "standby 0" RPI
I am lloking at something like the following code below, but not sure how
I can fit the above comand to it
ProcessBuilder builder = new ProcessBuilder("ls", "-l"); // or whatever
your command is
builder.redirectErrorStream(true);
Process proc = builder.start();

No comments:

Post a Comment