Thu 09 Jul 2009 09:42:07 PM UTC, original submission:
# this works:
screen -dmS mysess
screen -S mysess -p 0 -X stuff hello
If I now attach this session to my terminal (screen -r mysess), I see the "hello" that has been stuffed. The window selection (-p 0) is necessary.
However, attempting to stuff via 'at' command fails:
# this doesn't
screen -dmS mysess
screen -S mysess -X at \# stuff hello
# nor does this:
screen -dmS mysess
screen -S mysess -p 0 -X at \# stuff hello
Reattaching manually (screen -r mysess) after either of these attempts shows no stuffed "hello".
It is not only with "stuff" that "at" fails when used via -X. Attempting to set title fails the same way:
# this works:
screen -dmS mysess
screen -S mysess -p 0 -X title hello
# this doesn't:
screen -dmS mysess
screen -S mysess -X at \# title hello
# nor does this:
screen -dmS mysess
screen -S mysess -p 0 -X at \# title hello
The only way I have been able to get the 'at' command to work via -X is if I have the mysess session currently attached to a terminal/display, and run the screen -X from a second terminal.
This bug ruins any attempt at using "at" with -X. :'(
|