I am currently working on some scripts that automate a lot of stuff and are fairly medium sized. I have started to follow certain things to make my scripts generic and portable like:
- administrator login for scheduling scripts
- use of absolute paths
- use of config files
- use write-host when developing and switch to logging when deploying (debugging)
I would be most interested in knowing if there are any standard scripting techniques and guidelines out there that aim to make a script developers life simple. I work on both perl and powershell, so a more generalized advice would be most welcome and appreciated.
Thanks for any help in advance.
steeluser