Logo

This is www.cargal.org, home to all who seek knowledge and discussion.
Community, Arts, Research, Gnu, Answers and Liberty

CARGAL?
CARGAL is a project to promote free webculture and to provide a plattform for everyone to express him/herself.
Please read the about
//
CARGAL ist ein Projekt um die freie Netzkultur zu fördern und jedem/r Interessierten eine Plattform zu bieten, sich frei zu entfalten.
Bitte lies vorher die Info

CONTACT
If you want to get in direct contact with us use a jabberclient and go to the conference "cargal" on "jabber.cargal.org"
more infos

Wenn du mit uns in direkten Kontakt treten willst benutze einen Jabberclient und gehe zur Konferenz namens "cargal" auf "jabber.cargal.org"
mehr Infos

Projekte
Wo werden Leute, ob CARGALvereinsmitglied oder nicht, gebraucht,
welches Thema würde sich über Aufmerksamkeit freuen?

TOPICS
·Anleitung (126)
·Arts (162)
 ·Buch (14)
 ·Film (74)
  ·Kino (32)
  ·TV (6)
  ·DVD (13)
 ·Musik (41)
  ·Ogg (5)
 ·Küche (12)
  ·Bars
  ·Restaurants (5)
·Cargal (84)
 ·Verein_CARGAL (28)
·Computer (475)
 ·Apple (4)
 ·Betriebssysteme (119)
  ·FreeBSD
  ·GNU (94)
   ·GPL (1)
   ·Hurd
   ·Linux (92)
    ·Debian (33)
     ·Debianhelp (2)
     ·Debianpaket
    ·Gentoo (8)
    ·Redhat (3)
    ·SuSE (2)
 ·Hardware (23)
  ·Prozessor
   ·AMD
   ·Intel
 ·Internet (156)
  ·Apache (1)
  ·mITtendrin (85)
 ·Laptop (2)
 ·Programmiersprachen (51)
  ·Java (1)
  ·Perl (9)
  ·PHP (7)
 ·Software (78)
  ·Encryption (11)
   ·GnuPG (3)
  ·Gnome (3)
  ·Gnome2 (4)
  ·Instantmessaging (4)
  ·KDE
  ·Mozilla (1)
  ·Openoffice (3)
  ·X (4)
 ·Usenet
 ·Security (9)
·Disobey (69)
·Events (47)
·News (40)
·Personal (263)
·Science (15)
·Smartphones (2)
 ·Android (1)
·Spiele (13)
·Visions (124)
 ·Politik (56)
 ·Soziales (48)

FreeSoftware
Camby cash crypto-coders Cronto chomped on pronto by Vasco
Facebook teens' kimonos - basically never closed
Attention large Linux workloads
HTC woes prompts "leave now" Tweet from former staffer
Japan uses big data to map cultural climate change


PolitikSoziales
Twitter Launches Innovator’s Patent Agreement
"Viele junge Araber haben sich völlig von der Religion abgewandt"
Twitter ist für dicke Hosen
Special Ops Takes Its Manhunts Into Space
Spanien will Jugendarbeitslosigkeit abbauen - in Deutschland


Who's new
steph02
sel
tobik1000
mm2knet
Schneemann

Browse archives
< May 2013 >
SMTWTFS
  1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  


 Elegant logging with screen 
Submitted by m3 on Tuesday, November 01, 2005 - 16:05   Anleitung
I use ssh tunnels to my home-machine to get access to my pop3 mail and to send mail via SMTP, as certain firewalls, etc. sometimes prohibt access to my servers. Therefor I have to open up some ssh-sessions with portforwarding to get mails.

I could use putty to open some hidden screens, but I don’t like the idea of having several unseen windows pile up in the backgound of my Windows XP, so I keep them visible. To put them to good use, I tail some — for me — important logfiles in those windows.

In the past, I used to set up putty to send the command
su - -c "tail -f /var/log/messages /var/log/syslog /var/log/auth.log"
to the remote machine. I then had to enter the root-password to see the logs. Cumbersome, slow, error-prone and quite anoying in case your Internet-connection brike down several times.

FBN suggested using „screen” to fix some of my problems. After some RTFMing I wrote this litte gem:

screen -a -A -d -m su - -c "tail -f /var/log/messages /var/log/syslog /var/log/auth.log"
Now I have only to start the script once, do a „screen -r” and enter the password. In putty, I only have to give „screen -r” as the command to send to the server after login and „everything is good” (tm).

I can now just reattach to the running screen-session and see all my logs without having to enter any password or restart some tools. Very cool.

Du findest diesen Text auch in m³s online Pamphlet.
 
 

Navigation

Log in
Username:

Password:

Remember me

» New password

GnuPG
Key-Suchstring:



» add to Sidebar

Latest poll: Wenn eins der
folgenden Smartphones, dann....
PALM PRE FTW!
Motorola Milestone
Nokia N900
Sony Xperia X10 Rachael
BOB hat ein Dynatac 8000 , das reicht mir auch!