I want to map a key, say ctrl-shift-m to open a terminal, ssh into the mailhost, open pine and go into the compose mail pane. I already have ssh-key setup so i dont have to type my password while doing ssh, so that is not an issue.
This is how I do when I need:
1) Make a script with all commands needed
2) Create the shortcut
Change "/path/to/script" for the correct path, and
delete "exit" if you don't want the terminal to close after the execution of the script.
Then choose the shortcut you wish.
you can open terminal and execute command via the following code
You can add key mapping in