Original Poster Posted March 11, 2014 Share Posted March 11, 2014 hi I am trying to write a bash script that connects to a terminal using serial and screen but I cant get it to connect it starts the session and expects login but does nothing? any ideas it should be only a ffew lines so would appreciate the help Link to comment Share on other sites More sharing options...
Haggis Veteran Posted March 11, 2014 Veteran Share Posted March 11, 2014 what do u have so far? whats the serial port name? Link to comment Share on other sites More sharing options...
riahc3 Posted March 11, 2014 Share Posted March 11, 2014 Hello, hi I am trying to write a bash script that connects to a terminal using serial and screen but I cant get it to connect it starts the session and expects login but does nothing? any ideas it should be only a ffew lines so would appreciate the helpYou are missing a ";" Link to comment Share on other sites More sharing options...
Original Poster Posted March 12, 2014 Author Share Posted March 12, 2014 Hello, You are missing a ";" actually i solved it lol: the problem was that I was calling the bash script from a java program, the java program doesnt like using the sh command when running a script that will be using expect... just incase anyone wanted to know :P Link to comment Share on other sites More sharing options...
Recommended Posts