hello
i am writing a script using tcl.....i write it on linux and now running on window also...i am getting some error like with "catch".....plz tell me is there any way from which i can identify whether i am running script on window or linux ?........plz also tell how can i use catch in window...i am using following code to run any valid cmd used on window command prompt.....this is working on linux for linux shell command

Code:
if [catch {open "|$command"} input]
here command variable has any valid command....plz help