I have created a keyboard shortcut that initiates an SSH session to my server which works as expected and there is no issue with that.
However, to enable faster access to multiple log files I have resorted to opening multiple terminals with the same command, this means several terminals each with its own ssh session.
What would like to happen is to have just one terminal/ssh session and open each log file under a separate tab.
How would you approach this?
The current keyboard shortcut I use is: (previously -x updated --):
gnome-terminal -- ssh server1r
Note: server1r is a just a predefined ssh configuration in ~/.ssh/config
Previously: running this in the terminal creates a new tab showing the error log:
gnome-terminal --tab-with-profile=basic -- ssh server1r "tail /var/log/apache2/error.log -f"
Previously: This is where I am at now using information gleaned from various sources including man gnome-terminal, :
gnome-terminal --tab-with-profile=basic -- ssh server1r "tail ~/logs/error.log -f -n500" && gnome-terminal --tab-with-profile=basic -- ssh server1r "tail ~/logs/access.log -f -n500"
The above code runs perfectly from the terminal, creating two new tabs with the log entries shown. However, putting the command into the keyboard shortcuts doesn't work as expected. only the first log is opened and no tabs are created.
Keyboard shortcut entered exactly as above in: settings > devices > keyboard > custom shortcuts
Final Update: I have created a bash script using last code block as a temporary workaround giving me a terminal for each log. From this point I will check in periodically so see if anybody answers with a better solution, but at least for now I can open all of the required logs from one keyboard shortcut.