Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4817

Networking and servers • Re: one pi to rule them all....

$
0
0
Ok, have got to the point where I am using xfce terminal in a Bash script:

Code:

xfce4-terminal --tab --title="DoorPi4" --command='sshpass -p {PWord} ssh {IP}'
Question - is it possible to pass a command from Bash to the tab after the SSH session logs in? ie, a command to reboot the SSH Server?
And - when I have multiple tabs with multiple SSH sessions - is it possible to pass a command to ALL tabs at the same time?

Statistics: Posted by jondallimore — Sun Nov 10, 2024 9:32 am



Viewing all articles
Browse latest Browse all 4817

Trending Articles