Re: Any difference between `screen -r` vs `screen -x` when attaching to an already attached session?
Andrew Savchenko <[email protected]>
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Mon, 4 Jul 2016 18:15:50 -0400 Dun Peal wrote: > Looking for a command that would attach to a screen session "foo", wether > it is detached or not. It seems like `screen -x foo` would do it - it > attaches to "foo" in both cases. > > But is it really the same? Or is there any difference between `screen -x > foo` and `screen -r foo` when "foo" is detached? > > Specifically, is there a reason to choose one over the other when "foo" is > detached? -x option is needed for multiple display mode, when several users work the same screen (very useful when one needs to educate someone :)), so -x doesn't detach session if it is attached. -r is usually used in single user mode if session is already detached. It can't attach to already attached session. Best regards, Andrew Savchenko _______________________________________________ screen-users mailing list screen-users-mXXj517/[email protected] https://lists.gnu.org/mailman/listinfo/screen-users
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXeuH7AAoJEPZTWjO6HuSNixQP/Aoylkl19EICBl0+oKHXRQmy yfZHm4uPntz/rOynpAOaBoLa5BYy5BjICN2TOh1fb3vlR4ewFDKSoVp6qBjAPdKt zupZKKaN2zrFbb8UydrcEEnofzVAKkrQLkHWUMqtlMkE5bPT4kMjG/2yBsHWtxDP hWWXNcq7Kd7J5c46ocX+nWhZtFU0MDujxMaYW5e8YoctdCeuFI2pYT+Ntb21pq9M nbnmn91fHW87DekJTBiQVMWW3GpRdWiJF8S3fB40cb/lHn55oHYsimZ3oohvHbZS UtLd09JhxuJZhSbEOLEDNT70cQI5wa8a+1Y5g+01eGomTn5b+iAdhybJTnqry0sH VuNgwDUXqTC7+xXTygJ47lS1N/740sa3AME7XfsgwGvh1vslvwiPLehIoTfIcv3Z gNV+d7LTMLCXn+pJ0evfmMQxhPj7+QXumS/lRuHqRBMb89xrd4POrSpINlbeO2jx 2qG5yzCzwk6OR8//u4RNoccjcCWJZ7kXyTLdW1GqLH3H9cCpNEqnpO85mZBgoCvd M0y4B63SjIn8IeB86YfcHRu9xoFdh9/0aJzPt7YUV6QFBN6Yv5ShvonJCZ65s5ac QdKLjMVR14Cqrv/JCa+uHVB/Yu/5xpbDIBy06Tac3Dw+gSZhsf7fpN3KdGifF8hn A2RV90YcnnhiHk07gRPu =vKzR -----END PGP SIGNATURE-----