@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#!/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.