F5F Stay Refreshed Software Operating Systems Run commands in the command file for Ubuntu

Run commands in the command file for Ubuntu

Run commands in the command file for Ubuntu

S
SkywalkerJHM
Member
131
02-09-2016, 10:58 PM
#1
Hi everyone, I'm working on a school project where we need to connect six Raspberry Pi devices into a cluster to transcode videos. We only have one monitor, one mouse, and one keyboard shared among all the PIs, which makes swapping peripherals very slow. I discovered today that I can open a new tab in the command prompt and use SSH from one machine to another. I'm wondering if I can create a script to open a new tab (Shift+Ctrl+T), type "ssh pi@worker[1], execute, then open a new tab" and repeat for each worker ID from 1 to 5. Since we're running on Raspbian, that might help. Any advice would be appreciated!
S
SkywalkerJHM
02-09-2016, 10:58 PM #1

Hi everyone, I'm working on a school project where we need to connect six Raspberry Pi devices into a cluster to transcode videos. We only have one monitor, one mouse, and one keyboard shared among all the PIs, which makes swapping peripherals very slow. I discovered today that I can open a new tab in the command prompt and use SSH from one machine to another. I'm wondering if I can create a script to open a new tab (Shift+Ctrl+T), type "ssh pi@worker[1], execute, then open a new tab" and repeat for each worker ID from 1 to 5. Since we're running on Raspbian, that might help. Any advice would be appreciated!

M
MatthewW2005
Member
63
02-21-2016, 03:51 AM
#2
The script likely shouldn't launch a new browser tab, but it should execute a command remotely via SSH. You can use ssh pi2 'yourcommand.sh' to run yourscript.sh on pi2
M
MatthewW2005
02-21-2016, 03:51 AM #2

The script likely shouldn't launch a new browser tab, but it should execute a command remotely via SSH. You can use ssh pi2 'yourcommand.sh' to run yourscript.sh on pi2

K
KingJaydxn
Member
240
02-22-2016, 02:46 AM
#3
Addition to the previous message; exporting your SSH keys will let you run commands without entering a password https://www.thegeekstuff.com/2008/11/3-s...h-copy-id/
K
KingJaydxn
02-22-2016, 02:46 AM #3

Addition to the previous message; exporting your SSH keys will let you run commands without entering a password https://www.thegeekstuff.com/2008/11/3-s...h-copy-id/