fayans said:
That script looks very technical and I wonder how many users know how to write such script. I wish I could.
Actually, not to sound arrogant, but it a very easy script.
#!/bin/bash - this is needed for all bash scripts. #!/bin/sh works too. After this line, all lines staring with a "#" are comments so I'll ignore them.
say "now entering custom maintainance" - say "X" will force the Mac to speak whatever in in the quotes.
diskutil repairPermissions disk0s3 - Tell Disk Utilities to Repair Permissions on disk0s3. disk0s3 means the first disk (we usually cound from 0 in the computer world), 3rd partition (I'm think it is because there are 2 hidden partition on Mac formated drives). It you have a 2nd partition, you'd use disk0s4.
softwareupdate -ir - runs software update. the i means install the updates. The r means all recommended updates.
update_prebinding -root / -I'm not sure about this one. I copied it from someone else.
say "custom maintainance has finished" - Make the computer talk again.
I hope this helped some. I really recommend everyone to learn some sort of scripting language (I prefer bash) and the terminal. You'll be amazed at what you can do.