Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Come si visualizzano i dati di log [Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
canduc17
l33t
l33t


Joined: 11 Oct 2005
Posts: 795
Location: Ferrara, Italy

PostPosted: Wed Apr 04, 2007 6:01 pm    Post subject: Come si visualizzano i dati di log [Risolto] Reply with quote

Ciao.
Sto seguendo la guida alla gestione energetica per il mio notebook Acer Aspire 1307LC.
Dopo aver creato gli scipt per far capire al sistema se il portatile sta andando con la rete elettrica o con la batteria, la guida dice:
Code:
Provando ora ad attaccare e staccare l'alimentazione a corrente, nei log di sistema dovrebbero apparire a seconda dei casi i messaggi "Switching to AC mode" o "Switching to battery mode".

Ma come faccio a vedere questi log (e poi che cosa sono)?
Io ho istallato syslog-ng, ma non l'ho mai utilizzato.
Come devo fare?
Grazie.
_________________
A cow enters a supermarket, does an handstand and dies. (Public toilet graffito)


Last edited by canduc17 on Wed Apr 04, 2007 6:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Wed Apr 04, 2007 6:21 pm    Post subject: Reply with quote

Se la configurazione di syslog-ng è quella standard quasi tutti i messaggi vengono loggati in /var/log/messages.

Per cui ti basterà eseguire
Code:

tail -f /var/log/messages

e provare ad attaccare/staccare l'alimentazione.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
canduc17
l33t
l33t


Joined: 11 Oct 2005
Posts: 795
Location: Ferrara, Italy

PostPosted: Wed Apr 04, 2007 6:26 pm    Post subject: Reply with quote

Perfetto, infatti l'output è:
Code:
Apr  4 20:10:01 candacer cron[4716]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Apr  4 20:20:01 candacer cron[4733]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Apr  4 20:20:11 candacer logger: ACPI event unhandled: ac_adapter ADP0 00000000 00000000
Apr  4 20:20:11 candacer logger: ACPI event unhandled: ac_adapter ADP0 00000000 00000000
Apr  4 20:20:11 candacer logger: ACPI event unhandled: battery BAT0 00000000 00000001
Apr  4 20:20:11 candacer logger: ACPI event unhandled: battery BAT0 00000080 00000001
Apr  4 20:20:11 candacer logger: ACPI event unhandled: battery BAT0 00000081 00000001
Apr  4 20:20:11 candacer logger: Switching to battery runlevel
Apr  4 20:20:16 candacer logger: ACPI event unhandled: ac_adapter ADP0 00000000 00000001
Apr  4 20:20:16 candacer logger: Switching to default runlevel
Apr  4 20:20:18 candacer logger: ACPI event unhandled: ac_adapter ADP0 00000000 00000001
Apr  4 20:20:18 candacer logger: ACPI event unhandled: battery BAT0 00000000 00000001
Apr  4 20:20:18 candacer logger: ACPI event unhandled: battery BAT0 00000080 00000001
Apr  4 20:20:18 candacer logger: ACPI event unhandled: battery BAT0 00000081 00000001
Ora posso andare avanti con la mia configurazione.
Grazie mille!
_________________
A cow enters a supermarket, does an handstand and dies. (Public toilet graffito)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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