LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-15-2005, 05:40 AM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Fedora Core, Slackware, Vector Linux, Ubuntu
Posts: 1,167

Rep: Reputation: 46
activity log


At night while I'm trying to sleep I hear my pc working. I'm wondering what's going on since I'm the only user-how can I look at the activity log?
 
Old 11-15-2005, 07:29 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,463

Rep: Reputation: 46
daemons will still be running regardless of whether you are acutally doing anything on the machine. it will also respond to network traffic such as pings.

The fans in the machine won't go off either. they stay on all the time unless you have some way to hibernate the machine....
 
Old 11-15-2005, 08:01 AM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Fedora Core, Slackware, Vector Linux, Ubuntu
Posts: 1,167

Original Poster
Rep: Reputation: 46
I'm hoping it's just system maintenance activity-does it keep a log somewhere?
 
Old 11-15-2005, 09:13 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
By running
Code:
crontab -l
as root you will see that at 04:40 the "daily maintenance" will be carried out. There is also a weekly and monthly maintenance schedule, but I guess the 0440 is the time when you hear the hard drives rattling.

Look into the directory /etc/cron.daily/ and you will see a couple of (script) files that are being run at that time. One of those is slocate which makes a searchable index of all filenames on your hard disk, hence the disk activity. That is the database that gets queried when you run
Code:
locate crontab
for instance.

For any command that is run as a cron job and that produces output, the cron daemon will capture that output and send it to the owner of the cron job (most of the times that will be root, but you can schedule your own cron jobs too) and it will be sent as an email. For cron to be able to send those emails and for you to read them, you should have the sendmail and nail packages (and optionally pine) installed (they get installed by default I think). Reading those emails is as simple as logging in as root, and starting
Code:
mail
. You might have to get used to the sparse command line interface, so you could also try
Code:
pine
which is a curses based mail client. You can even use Thunderbird if you're brave enough to run X Window as root.
Most of the standard cron jobs do not produce console output when they run and so they do not generate emails. The emails come when things go wrong however!

Hope this clarified it a little.

Eric
 
Old 11-15-2005, 03:24 PM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Fedora Core, Slackware, Vector Linux, Ubuntu
Posts: 1,167

Original Poster
Rep: Reputation: 46
You are right-4:40 AM is the time my pc wakes me up! Can I reschedule those tasks for a different time?
 
Old 11-16-2005, 06:55 PM   #6
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 531

Rep: Reputation: 36
Instead of crontab -l (list), try crontab -e (edit).

Cheers,
Eddie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log tftp activity for slack ware?? Crazy Linux - Software 1 08-04-2005 07:17 PM
how to log port activity irfanhab Linux - General 4 06-18-2005 12:07 AM
which log gives me info about internet activity? dr_zayus69 Linux - Newbie 7 12-03-2004 05:14 PM
suspicious log activity hoedad Linux - Newbie 3 07-26-2004 07:33 AM
How to Log eth0 activity? Noffy Linux - Networking 1 03-04-2002 04:26 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration