You're going to kick yourself when you realise this...
The latest versions of nc (not hobbit and his 1.10 release) already have a proxy command available to them as part of their command switches.
If you can't get the latest version let me know and I'll find the shell script I've been using for a while now.


