Dear author:
    We use gun screen on my work. use it any time. but I have some problem
about Attach a screen.
    for example, on my linux server have these screen list.

# screen -ls

4055.hefu1 (Detached)
40553.hefu11 (Detached)
 4055.hefu11 (Detached)
40556.hefu2 (Detached)
 34055.hefu2 (Detached)


 I want to attach hefu1
 when I try screen -r hefu1 it doesn't work
 when I try screen -r 4055   it doesn't work

So I have write a small shell (./screen_tool.sh) tool to attach screen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#!/bin/bash
# name: screen_tool.sh
# use: ./screen_tool.sh hefu1

name="$1"
scrname=$(screen -ls | grep -w "[0-9]*._\?${name}" | awk '{print $1}')

screen -r $scrname

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

this shell is to get 4055.hefu1 , so I can use command   screen
-r 4055.hefu1   to attach it.


another problem:
when I open many screen id on the same linux server at the same time. I use
 ./screen_tool.sh to attach. I also can  not attach the screen sometimes.
Does screen can not attach many screen at the same time ?

thanks very much. hope you can reply me.



------------------------------------------------------
祝:工作顺利  心情愉悦!

致 礼!
                     郑森林,fivetrees
_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to