I am just wondering if I can attach to few different process and see the output on the same session.
For example I start few process in detach mode
screen -dm -S process "cp 111 222"
screen -dm -S process "cp 333 444"
screen -dm -S process "cp 666 777"
At the end I want to attach to all of them and the output in one screen, like with screen -r
Thanks!
You want to start those as separate windows within a single
screensession, by using something like(Note lack of quotes; if you quote it, you’ll find the created window reports an error along the lines of
Cannot exec 'cp 333 444': No such file or directory, because it takes the quoted command as the name of an executable, not as a command and parameters.)