Writing to linux tty (/dev/) files in c# -
i need program execute command in bash this: "echo p1-12=175 > /dev/servoblaster". how do in mono/c# on linux? wrote following class: public static class servoblasterpwm { private static filestream devfile; public static bool isrunning { get; private set; } public static bool initialize() { try { devfile = file.open("/dev/servoblaster", filemode.open); } catch (exception e) { log.error("error while setting port servo blaster: " + e.message); return false; } log.success("servoblaster set up."); isrunning = true; return true; } public static void setpwmoutput(int pin, int valuesteps) { //byte[] bytes = encoding.ascii.getbytes("p1-" + pin.tostring() + "=" + valuesteps.tostring()); byte[] bytes = encoding.ascii.getbytes("p1-12=175")...