Hi Ryan.
One of the simplest ways would be to utilize Linux "
expect" scripts. There is a lot of information about how to use them available in the Internet but here is a quick example on how you can use it in your case:
Create a text file named script.sh with following contents:
#!/usr/bin/expect -f
spawn screen /dev/ttyUSB0 9600
expect "login:"
send "admin\r"
expect "password:"
send "\r"
expect " # "
send "show version\r"
expect " # "
send "exit\r"Change access permissions of this file:
# chmod 755 script.sh
Run it and send output to some text file:
# ./script.sh > file.txtI hope it will help.
--
Konstantin