2012-05-03 19 views
11

नहीं बनाते हैं, तो वर्तमान में, मैं अपने आईपैड पर जीएनयू स्क्रीन का उपयोग कर रहा हूं और कनेक्शन खो जाने की स्थिति में सुरक्षा के रूप में स्क्रीन का उपयोग कर रहा हूं। वर्तमान में, मैं बस पहली कमांड के रूप में स्क्रीन-एस आईपैड चलाता हूं, लेकिन अगर यह मौजूद है तो यह स्वचालित रूप से पुराने आईपैड सत्र से कनेक्ट होने का एक तरीका है (और यदि नहीं है तो इसे बनाएं)? मेरा एक चेतावनी यह है कि मैं इसे एक कमांड में और स्वचालित रूप से करना चाहता हूं।जीएनयू स्क्रीन कनेक्ट होने पर कनेक्ट होता है, अगर

उत्तर

20

-D -R विकल्प स्क्रीन को अलग करने या आवश्यक होने पर बनाने की कोशिश करेंगे।

screen -D -R -S ipad 

मैं सुझाव है कि आप सभी -d|D -r|-R|-RR स्क्रीन के मैनुअल में विकल्पों पर एक नज़र लेने के बाद से वहाँ इसी तरह के परिणाम के साथ कई हैं।

-d -r 
    Reattach a session and if necessary detach it first. 
-d -R 
    Reattach a session and if necessary detach or even create it first. 
-d -RR 
    Reattach a session and if necessary detach or create it. Use the first session if more than 
    one session is available. 
-D -r 
    Reattach a session. If necessary detach and logout remotely first. 
-D -R 
    Attach here and now. In detail this means: If a session is running, then reattach. If necessary 
    detach and logout remotely first. If it was not running create it and notify the user. This is 
    the author's favorite. 
-D -RR 
    Attach here and now. Whatever that means, just do it. 
    Note: It is always a good idea to check the status of your sessions by means of "screen -list". 
+0

बिल्कुल सही! यह ठीक वही है जिसकी मुझे तलाश थी। – bswinnerton

संबंधित मुद्दे