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

 
 

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

Submitted by:  None
Submitted on:  Thu 09 Jul 2009 09:42:07 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 4.0.3
Fixed Release: 4.1.0Planned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 20 Dec 2009 05:18:16 AM UTCsadrulStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.1.0

    Back to the top


    Powered by Savane 3.1-cleanup1