in reply to system command problem

The exit status of system() should be devided by 256. dividing 65280 by 256 gives 255 which I think it's -1, so you should check what that means, besides, you should post some more code so we can help you more.

Hotshot