Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gnu screen] am Leben erhalten
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Feb 06, 2012 11:50 am    Post subject: [gnu screen] am Leben erhalten Reply with quote

Hi

Bei eine Steuerungsrechner starte ich manche Dienste mit screen:

Code:

$ screen -dmS dienst1 cmd_of_dienst1 params_of_dienst1


das finde ich ganz praktisch, aber wenn mein Dienst warum auch immer stirbt, dann ist mein screen auch weg. Eigentlich würde ich gerne, dass meine screen Umgebung nicht sofort verschwindet, wenn der Dienst dienst, damit man mögliche Fehleroutputs des Dienstes sehen kann.

Ist das mit screen möglich?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Mon Feb 06, 2012 12:01 pm    Post subject: Reply with quote

vermutlich musst du eine shell in screen starten und dann darin das programm
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Feb 06, 2012 1:54 pm    Post subject: Reply with quote

Also '-L' wuerde allen output in screenlog.n schreiben... (wobei 'n' vermutlich der screen name ist?) ungetestet.

//edit: gefunden: http://www.manpagez.com/man/1/screen/

//edit: or a .screenrc:
Code:
# set log on all windows (and new ones)
deflog on

# set log path and filename
logfile $HOME/.log/screen/screenlog.%t

http://dotfiles.org/~erikw/.screenrc
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Feb 07, 2012 11:16 am    Post subject: Reply with quote

Hi

die log Variante ist gut, ich werde daran nachdenken.

Danke
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum