multi-window screen από γραμμή εντολών
Christos Ricudis
ricudis at itc.auth.gr
Thu Sep 16 12:33:22 EEST 2010
On 09/16/10 11:52, Σπύρος Γεωργαράς wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> στις 16/09/2010 11:32 πμ, O/H Γιώργος Πάλλας έγραψε:
>> On 09/16/2010 11:18 AM, Σπύρος Γεωργαράς wrote:
>>>> Δοκίμασε ακριβώς αυτό που σου έγραψα με το CTRL-A D για να κάνεις detach
>>>> και να συνεχίσουν να τρέχουν τα windows του screen σου, και μετά όταν
>>>> θέλεις να το ξανανοίξεις δίνεις 'screen -r' και πες αν όλα έπαιξαν όπως
>>>> τα θέλεις. Δεν έχει επίσης σημασία αν έχεις μόνο ένα screen window.
>>>>
>>>>
>>> Ακριβώς αυτό λέω. Αυτή τη στιγμή έχω κάνει ακριβώς αυτό. Έχω ένα screen
>>> session, με τρία window που τρέχουν τρία torrent. Έχω σετάρει και title σε
>>> κάθε window και έχω κάνει detach.
>>>
>>> Αν λοιπόν ο server κάνει reboot, πως μπορώ να επαναφέρω εύκολα το παραπάνω
>>> σεταρισμένο μου session? Δεν υπάρχει άλλος τρόπος παρά να το ξανα-σετάρω με το
>>> χέρι;
>>>
>>>
>>
>> Δυστυχώς δεν νομίζω πως γίνεται αυτό που λες...
>>
>>
>
> Αυτό φοβόμουν και εγώ, αλλά μια ερώτηση δε βλάπτει...
>
> Όπως και να 'χει, ευχαριστώ για τη βοήθεια
>
>
Επειδη στο Ubuntu 10.04.666.69WTF-OMG-LOL αφαιρεθηκαν ως αχρηστες οι man
pages επειδη δεν τις διαβαζε κανενας, αντιγραφω απο αλλη διανομη.
Ολα τα παρακατω μπαινουν στο ~/.screenrc αρχειο.
c1 [on|off]
Change c1 code processing. "C1 on" tells screen to treat the input
characters between 128 and 159 as control functions. Such an 8-bit code
is normally the same as ESC followed by the corresponding 7-bit code.
The default setting is to process c1 codes and can be changed with the
"defc1" command. Users with fonts that have usable characters in the c1
positions may want to turn this off.
Σε αλλο σημειο :
defc1 on|off
Same as the c1 command except that the default setting for new
windows is changed. Initial setting is ‘on’.
Παρακατω :
detach [-h]
Detach the screen session (disconnect it from the terminal and put it
into the background). This returns you to the shell where you
invoked screen. A detached screen can be resumed by invoking screen
with the -r option (see also section "COMMAND-LINE OPTIONS"). The
-h option tells screen to immediately close the connection to the
terminal ("hangup").
Ακομα πιο κατω :
screen [-opts] [n] [cmd [args]]
Establish a new window. The flow-control options (-f, -fn and
-fa), title (a.k.a.) option (-t), login options (-l and -ln) , terminal
type option (-T <term>), the all-capability-flag (-a) and
scrollback option (-h <num>) may be specified with each command. The
option (-M) turns monitoring on for this window. The option (-L) turns
output logging on for this window. If an optional number n in the range
0..MAXWIN-1 is given, the window number n is assigned to the newly
created window (or, if this number is already in-use, the next available
number). If a command is specified after "screen", this command (with
the given arguments) is started in the window; otherwise, a shell
is created.
Thus, if your ".screenrc" contains the lines
# example for .screenrc:
screen 1
screen -fn -t foobar -L 2 telnet foobar
screen creates a shell window (in window #1) and a window with a TELNET
connection to the machine foobar (with no flow-control using the
title "foobar" in window #2) and will write a logfile ("screenlog.2")
of the telnet session. Note, that unlike previous versions of
screen no additional default window is created when "screen" commands
are included in your ".screenrc" file. When the initialization is
completed, screen switches to the last window specified in your
.screenrc file or, if none, opens a default window #0. Screen has built
in some functionality of "cu" and "telnet". See also chapter
"WINDOW TYPES".
- --
Φιλικα
Χρήστος
___________________________________________________________________
"Κλαστε μου τον μπουτσον". -- Γ. Καραισκακης
More information about the Linux-greek-users
mailing list