You should not typ "\n"! It means that you should press enter on your keyboard. On Linux I saw that I have to send "\r\n" instead of "\n". "\r\n" (Carriage return, Line feed) is the Windows return, "\n" only the Linux return.