Bonjour,
Je viens vers vous car j’ai une question qui me passe par la tête est qui reste sans réponse … est-il possible d’enregistrer tout ce qui est écrit sans un screen debian ? (On parle bien du logiciel
)
Merci de vos futurs réponse.
Bonjour,
Je viens vers vous car j’ai une question qui me passe par la tête est qui reste sans réponse … est-il possible d’enregistrer tout ce qui est écrit sans un screen debian ? (On parle bien du logiciel
)
Merci de vos futurs réponse.
[quote=“man screen”]CUSTOMIZATION
[…]
When screen is invoked, it executes initialization commands from the files “/etc/screenrc” and “.screenrc” in the user’s home directory. These are the “programmer’s defaults” that can be overridden in the following ways: for the global screenrc file screen searches for the environment variable $SYSSCREENRC (this override feature may be disabled at compile-time). The user specific screenrc file is searched in $SCREENRC, then $HOME/.screenrc. The command line option -c takes precedence over the above user screenrc files.
[…]
log [on|off]
Start/stop writing output of the current window to a file “screenlog.n” in the window’s default directory, where n is the number of the current window. This filename can be changed with the logfile' command. If no parameter is given, the state of logging is toggled. The session log is appended to the previous contents of the file if it already exists. The current contents and the contents of the scrollback history are not included in the session log. Default isoff’.
logfile filename
logfile flush secs
Defines the name the logfiles will get. The default is “screenlog.%n”. The second form changes the number of seconds screen will wait before flushing the logfile buffer to the file-system. The default value is 10 seconds.[/quote]
Qu’est-ce que tu entends par “tout ce qui s’écrit” ?
Les commandes ? Voir historique des commandes.
Le retour des commandes ? les messages d’erreur ? l’affichage ?
Exemple : login en tty2
tty2 $ man man
Imaginons que tu veuilles récupérer ce qui s’affiche en tty2 depuis tty3
tty3 # cat /dev/vcs2
Le manuel lu en tty2 s’affichera en tty3.
Voir aussi screendump, mesg, write
write et mesg permettaient de s’envoyer des messages en interne, on peut aussi s’envoyer des captures de texte.
$ mesg
mesg is n
$ mesg y
$ mesg
mesg is y
Merci pour vos réponses
j’ai trouvé mon bonheur avec la commande screen -L qui va log tout dans un fichier là où on lance le screen (screenlog.0).
Je ne sais pas encore s’il va me log tous les screens ou alors les différencier à suivre
Merci à bientôt !