Errer | 3 Feb 07:46
Picon

Screen will not launch at all in OS X


Hi, I am running OS X 10.7, and GNU Screen will not launch at all at the
command line (it just hangs indefinitely). This is true both when trying to
run screen locally and remotely. Screen will still do some basic stuff such
as dump the version information when I run "screen --version", but about all
I can do if I run screen normally is suspend the process, and when I run
"fg" I get the following error message:

"Sorry, cannot contact session "52349.ttys010.xxxxx" again."

This problem has actually existed for me for over a year (under both 10.6
and 10.7), and both the built-in version of screen in OS X and the version
from MacPorts have the same problem (they are both version 4.00.03). Does
anyone have any ideas on how to solve this?
--

-- 
View this message in context: http://old.nabble.com/Screen-will-not-launch-at-all-in-OS-X-tp33255134p33255134.html
Sent from the Gnu - Screen mailing list archive at Nabble.com.
Adrian Fita | 3 Feb 12:48
Picon

Identifier matching in the at command

Hi.

I can't seem to find anything regarding the syntax for the
"identifier" from the at command. So far I discovered that
- I can match the windows that have the title begin with the same characters or
- I can match only one window by complete title or number or
- I can match all the windows.

I'm interested in matching only a list of windows (title or numbers)
or a range of numbers. Is this possible? If yes, how?

Thanks.
--
Fita Adrian
skip | 3 Feb 18:26
Picon
Favicon

Re: Screen will not launch at all in OS X


    Errer> This problem has actually existed for me for over a year (under
    Errer> both 10.6 and 10.7), and both the built-in version of screen in
    Errer> OS X and the version from MacPorts have the same problem (they
    Errer> are both version 4.00.03). Does anyone have any ideas on how to
    Errer> solve this?

I've no ideas how to solve it, but I can report that it works for me on
10.5.8 (using it to type this, in fact).  It is also version 4.00.03.
Perhaps something changed in Snow Leopard?  I have a Lion machine at home.
I will try and remember to test it when I get home this evening.

--

-- 
Skip Montanaro - skip@... - http://www.smontanaro.net/
skip | 4 Feb 02:07
Picon
Favicon

Re: Screen will not launch at all in OS X


    skip> I've no ideas how to solve it, but I can report that it works for
    skip> me on 10.5.8 (using it to type this, in fact).  It is also version
    skip> 4.00.03.  Perhaps something changed in Snow Leopard?  I have a
    skip> Lion machine at home.  I will try and remember to test it when I
    skip> get home this evening.

Just tried it on my Lion machine, both local and in an ssh session.  Worked
fine.

--

-- 
Skip Montanaro - skip@... - http://www.smontanaro.net/
Adrian Fita | 5 Feb 19:57
Picon

Re: Identifier matching in the at command

On Fri, Feb 3, 2012 at 13:48, Adrian Fita <adrian.fita@...> wrote:
>
> [...]
>
> I'm interested in matching only a list of windows (title or numbers)
> or a range of numbers. Is this possible? If yes, how?

Seeing there doesn't seem to be an answer too soon, I poked around in
the source code at http://git.savannah.gnu.org/cgit/screen.git and I
think I found the code that parses the identifier in the "at" command.
It's located in the file process.c and begins at line no 1587. There,
at line 1605 I found the following:

if (strncmp(args[0], fore->w_title, n))
		      continue;

It seems that the title is only matched with a srtcnmp, not at all
with some regexp which would allow some advanced expressions for
matching the title. So I guess I'll have to make do with the three
matching methods I mentioned in the previous message. Am i right?

--

-- 
Fita Adrian
Artur Skonecki | 5 Feb 20:20
Picon
Gravatar

Re: Identifier matching in the at command

Just out of pure curiosity. What are you trying to accomplish?

On Sun, 5 Feb 2012, Adrian Fita wrote:

> On Fri, Feb 3, 2012 at 13:48, Adrian Fita <adrian.fita@...> wrote:
>>
>> [...]
>>
>> I'm interested in matching only a list of windows (title or numbers)
>> or a range of numbers. Is this possible? If yes, how?
>
> Seeing there doesn't seem to be an answer too soon, I poked around in
> the source code at http://git.savannah.gnu.org/cgit/screen.git and I
> think I found the code that parses the identifier in the "at" command.
> It's located in the file process.c and begins at line no 1587. There,
> at line 1605 I found the following:
>
> if (strncmp(args[0], fore->w_title, n))
> 		      continue;
>
> It seems that the title is only matched with a srtcnmp, not at all
> with some regexp which would allow some advanced expressions for
> matching the title. So I guess I'll have to make do with the three
> matching methods I mentioned in the previous message. Am i right?
Adrian Fita | 5 Feb 21:57
Picon

Re: Identifier matching in the at command

I want to send commands to a selection of open windows in screen. The
command to do that is the "at" command, but it doesn't allow a
sufficiently flexible syntax for selecting the windows to which to
send the commands. I can't match something like a list, let's say I
want to send the command to the windows numbered 1,3,4,6,10, or match
a range of numbers, ex: 3-9 or select the windows based on the titles
like "*string" (supposing you have some windows titled with "string"
at the end). The most flexible way to match the windows for now is
naming the windows with the same string in the front. Also, the
documentation is lacking in clearly describing what is the syntax of
the "identifier" parameter is.

--
Fita Adrian

On Sun, Feb 5, 2012 at 21:20, Artur Skonecki <skoneka <at> gmail.com> wrote:
> Just out of pure curiosity. What are you trying to accomplish?
>
>
>
> On Sun, 5 Feb 2012, Adrian Fita wrote:
>
>> On Fri, Feb 3, 2012 at 13:48, Adrian Fita <adrian.fita <at> gmail.com> wrote:
>>>
>>>
>>> [...]
>>>
>>> I'm interested in matching only a list of windows (title or numbers)
>>> or a range of numbers. Is this possible? If yes, how?
>>
(Continue reading)

Artur Skonecki | 5 Feb 22:44
Picon
Gravatar

Re: Identifier matching in the at command

The development version of GNU Screen has -Q flag which may be used
to query results of some commands.  Also there is -X flag for sending
arbitrary commands to a session, e.g. "screen -p 1 -Q title" will yield
the title of window 1.  Unfortunately, sending commands to every window
separately is much slower than using "at" command.

<shameless auto-promotion>
If you are willing to compile Screen on your own you might as well
install screen-session https://github.com/skoneka/screen-session/downloads
and grep "screen-session dump" output for window titles.
</shameless auto-promotion>

On Sun, 5 Feb 2012, Adrian Fita wrote:

> I want to send commands to a selection of open windows in screen. The
> command to do that is the "at" command, but it doesn't allow a
> sufficiently flexible syntax for selecting the windows to which to
> send the commands. I can't match something like a list, let's say I
> want to send the command to the windows numbered 1,3,4,6,10, or match
> a range of numbers, ex: 3-9 or select the windows based on the titles
> like "*string" (supposing you have some windows titled with "string"
> at the end). The most flexible way to match the windows for now is
> naming the windows with the same string in the front. Also, the
> documentation is lacking in clearly describing what is the syntax of
> the "identifier" parameter is.
Juergen Weigert | 6 Feb 14:56
Picon
Favicon

Re: Screen will not launch at all in OS X

On Feb 02, 12 22:46:48 -0800, Errer wrote:
> 
> Hi, I am running OS X 10.7, and GNU Screen will not launch at all at the
> command line (it just hangs indefinitely). This is true both when trying to
> run screen locally and remotely. Screen will still do some basic stuff such
> as dump the version information when I run "screen --version", but about all
> I can do if I run screen normally is suspend the process, and when I run
> "fg" I get the following error message:
> 
> "Sorry, cannot contact session "52349.ttys010.xxxxx" again."

Two tests:
- can you try to run screen as superuser?
  Would it work then?

- can you try to run (as normal user and if possible also superuser)
  strace -o screen_strace.log screen
  and show us the screen_strace.log file.

guess that would be helpful for diagostics...

        cheers,
                JW-

--

-- 
 o \  Juergen Weigert      unix-software __/ _=======.=======_     
<V> | jw@...         creator    __/        _---|____________\/    
 \  |            0179/2069677      __/          (____/            /\
(/) | ____________________________/              _/ \_ vim:set sw=2 wm=8
(Continue reading)

Tesque NURE | 17 Feb 02:01
Picon

Runing dosemu with screen via ssh

Hello all,

I use a old clipper apps with dosemu via ssh.
from my laptop with putty display is good and all important key work fine.

Now i try to use it with screen from my asus transformer.
With connectbot and hackerskeyboard.

My problem is than graphical caracters dont display well and i dont anderstand how to fixe to 80 columns.

I already read the man page but its to hight level for me.
hop you can help me.
regards,
Tes.

_______________________________________________
screen-users mailing list
screen-users@...
https://lists.gnu.org/mailman/listinfo/screen-users

Gmane