bugGNU Screen - Bugs: bug #26996, 'at' command fails via screen -X...

 
 

bug #26996: 'at' command fails via screen -X when session is not attached

Submitter:  None
Submitted:  Thu 09 Jul 2009 09:42:07 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  4.0.3
Fixed Release:  4.1.0 Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 20 Dec 2009 05:18:16 AM UTC, comment #4: 

Fixed in 4b77878. Thanks for reporting the bug!

It is true that the 'at' command is mostly very display oriented. However, for window-context, it doesn't depend that heavily on the display, and we can allow a command to be executed on a window without any display. The change made will allow that. Of course, if you want to use a command that requires a display with 'at', and you don't have a display, it will not work. But that's how it's supposed to roll.

Sadrul Habib Chowdhury <sadrul>
Group administrator
Tue 08 Sep 2009 01:59:43 AM UTC, comment #3: 

Perhaps the documentation needs to be updated?

The code for RC_AT, even for the window selection mode, seems very display-oriented. It seems like a mechanism for something like a screenrc to do something on a particular window, without affecting the display's current window.

Even the OP notes that -p with -X works for running a command on a particular window, without regard to display status.

Perhaps this is a feature request for -p/-X to have a prefix match, like "at"?

Max Kalashnikov <maxkalashnikov>
Sat 29 Aug 2009 06:04:33 PM UTC, comment #2: 

It's for displays, windows, or users, depending on the wildcard used.

Micah Cowan <micahcowan>
Sat 29 Aug 2009 02:42:46 AM UTC, comment #1: 

This strikes me as not a bug, since the "at" command is for running something against a connected display, not a window. If no displays are connected, doing nothing seems like the right thing.

Max Kalashnikov <maxkalashnikov>
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. :'(

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sadrul (Posted a comment)
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by maxkalashnikov (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-20 sadrul StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.1.0

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code