Screen of zamorochki?

Good day, linux guru.


You are asking about is: Is running a screen (Screen), on a single socket. Inside the session there are 3 tab.


0 — daemon

1 — daemon

2 — daemon

3 — empty


As pattachitra in this screen, this 3-tab, to let there team?


Something like screen-p number_tabs but something does not roll.


CANT? Thank you!
October 8th 19 at 02:28
2 answers
October 8th 19 at 02:30
Solution
screen-S mysession -p 1-X stuff 'ls-l"echo-ne '\015"

Where mysession is the session name can be set through
C-a :sessionname mysession
1 — room window.
Instead of the number window, you can specify the name of the window - simeon_Fay commented on October 8th 19 at 02:33
I already tried this option, not any result. It seems to be a new line as if the command worked. However, there is no. - Ila.Mayert commented on October 8th 19 at 02:36
This is an option for bash, which You were? - simeon_Fay commented on October 8th 19 at 02:39
the same bash. Now I tried to play. Tell me if you know.
What is passed after the -X? Any team bash? I tried Your stuff and exec and do the ping www.ru. Have some mana on how to pass cmd - Ila.Mayert commented on October 8th 19 at 02:42
and Express -X stuff, the command is sent when in single quotation marks, and then have passed Enter - simeon_Fay commented on October 8th 19 at 02:45
in my example all is clear. transmitted the command ls-l and then Enter.
Just put the name of session and number of your window, and of his command in quotes, instead of ls - l - simeon_Fay commented on October 8th 19 at 02:48
I understood it. It is not clear what arguments after -X are even possible. - Ila.Mayert commented on October 8th 19 at 02:51
October 8th 19 at 02:32
tmux send-t 'foo.3 echo "bar" ENTER'; attach;

Could have made a mistake in the brackets or shielding, it is possible to take the last screenshot something pohue to be.
send-t 'foo.3 echo "bar" -> send-t foo.3 'echo "bar" - simeon_Fay commented on October 8th 19 at 02:35

Find more questions by tags GentooGNULinux