Tuesday, November 25, 2008

Tips for KixTart Scripting

This should be called "tip" rather than "tips". I was helping a friend debug his login scripts for his company's network last night. The very first thing I saw was also the most common thing I see with kix scripts: failing to capture returned values.

Anytime you execute a line of code that can return a value, it should be caught by a variable or a null object (the familiar "$" symbol). Failing to do so results in letting the values echo to the screen. It's not only annoying, it's sloppy and bad coding practice.

Anytime your console is showing zeros and ones you're not following this like you should. Aside from that the best advice I can offer anyone working with KixTart is to spend some time on their site (www.kixtart.org)

Post a Comment