Mac maintenance scripts

rekoman

Junior Member
Feb 19, 2012
4
0
0
Hi everyone,

I am new to the forum, thanks to everyone for all the helpful interesting information.

Could someone let me know what is the command line to be entered in the Terminal window in order to manually run the "daily" "weekly" "monthly" maintenance script for mac os x SL.

My system is: Mid 2009, MBP5,2, 8GB Ram, 3.06 Ghz,C2D, 10.6.8 SL

I know, i can run 3rd party appls, i would run in terminal to learn the system there.

Thanks 2 all.
 

nerp

Diamond Member
Dec 31, 2005
9,865
105
106
Hi everyone,

I am new to the forum, thanks to everyone for all the helpful interesting information.

Could someone let me know what is the command line to be entered in the Terminal window in order to manually run the "daily" "weekly" "monthly" maintenance script for mac os x SL.

My system is: Mid 2009, MBP5,2, 8GB Ram, 3.06 Ghz,C2D, 10.6.8 SL

I know, i can run 3rd party appls, i would run in terminal to learn the system there.

Thanks 2 all.

"sudo periodic daily monthly weekly"
 

rekoman

Junior Member
Feb 19, 2012
4
0
0
nerp, thanks for the reply.

i get this warning in terminal after that entry:

"Warning: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type " man sudo " for more information. "

is this normal warning ? and is OK to proceed.

Thanks again.
 

ChAoTiCpInOy

Diamond Member
Jun 24, 2006
6,442
1
81
Yeah its normal. And yeah you can proceed. Sudo basically means complete access to everything, so there would be a warning for that.
 

ViRGE

Elite Member, Moderator Emeritus
Oct 9, 1999
31,516
167
106
It seemed too "simple"

Plus I've never heard of it. Is it necessary?
It's not absolutely necessary, but it helps to keep things manageable. You can look at all the scripts under /etc/periodic/, but it's mostly just log rotation, recording system statistics, and refreshing a couple of Unixy databases.
 
Last edited:
Feb 25, 2011
16,992
1,621
126
It's not absolutely necessary, but it helps to keep things manageable. You can look at all the scripts under /etc/periodic/, but it's mostly just log rotation, recording system statistics, and refreshing a couple of Unixy databases.
Yup.

Every UNIX-ish system has something similar. They're supposed to keep things neat, but OS X only tries to run them at some absurd hour of the night when most peoples' computers are off. So they never get run and things get less neat.
 

rekoman

Junior Member
Feb 19, 2012
4
0
0
When running the scripts, the terminal window dose not display anything and I did not see a " process completed " result.

Are the scripts run in the background ?
how do i know the scripts have been run ?

I did some checking and came up with this line to check when the scrips were last run,
is this correct ?

ls -al /var/log/*.out


Thanks for the info.