Smart is an idiots way of using linux which is why it suits me
There are 4 commands that I use...
Smart Update (updates smart software without requiring feedback)
Smart Upgrade (checks what needs to be changed then asks y/n ONCE if you want to change them)
Smart Check (checks for dependency errors without requiring feedback)
Smart Fix (fixes errors asking y/n ONCE if you want to fix them)
I'll have a look what I can do with that piece of code later when I get in. It looks like its what I want though. Thanks for your reply