I want to write a bash script that opens multiple screens and detaches them. So at the end you'll have a few screens open each running a different command.
Similar to ssh
:
ssh DESTINATION "command 1; command 2;"
my idea was to write something like this:
screen -S name1 "command1"
screen -S name2 "command2"
...
But this doesn't work.
ideas?
Add -d -m
to the screen
command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With