in reply to windows->unix communication

Is the script doing what it's supposed to? Does a simpler script work?

I know you're using backticks and this shouldn't be the problem, but that '256' looks like an unsuccessful return value from system(). Can you look at the lastlog on the 'nix box and confirm success or failure of the connection attempts?

--
jpg