I was writing a bash-script which communicate with a server via telnet, but right now I need to evaluate the reply from server.
Usage:
./edit.bash | telnet
BASH script:
echo "open ip port"
echo "login user pass"
echo "select 1"
echo "me"
echo "edit id=ID group=3"
echo "exit"
If I send the command "me" I get a reply from the server which i need to evaluate.
The reply from server looks like this example... "nick=NICK id=ID group=GROUP login=LOGIN".
A friend of mine told me that I need to look for "expect" than "bash", but my knowledge of expect is right now ZERO :p
Never used that before...