Run commands in the command file for Ubuntu
Run commands in the command file for Ubuntu
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!
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
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/