I tried searching I couldn't get answer to my question, maybe because I am not sure how to ask it correctly, so I apologize in advance.
I am trying to execute chain of commands in bash script eg:
run mysql > type help > exit
root@ubuntu:# mysql
mysql> help
mysql> exit
root@ubuntu:#
How can I achieve this in bash script?
I have tried operands ||, &&, ; all this eg:
#!/bin/bash
mysql || help || exit
Didn't work. It executes commands after each other.