scripting Disk Utility to run permissions

Machine Model: Power Mac G5
CPU Type: PowerPC 970 (2.2)
Number Of CPUs: 2
CPU Speed: 1.8 GHz
L2 Cache (per CPU): 512 KB
Memory: 1.5 GB
Bus Speed: 900 MHz
Boot ROM Version: 5.1.2f2

Hello Everyone,

I need some help as i am a complete newbie (well I know a little). I need to set up a script for My mac G5 OSX10.3.4 to check and repair permissions is this possible? I could do with some sort of scheduler that can run at certain times.

The problem is sometimes my mac does not shutdown or restart, if I run permissions it seems to solve the problem.

Any ideas??

cheers Roland

[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]