Don't do it!
i just turn off the switches and plug into the recepticles with a heavy duty cord-14ga. that will have a male plug on each end.
Aside from any code violations, this sort of setup is just not safe.
No matter how careful you think you will be, when the lights go out and you're trying to hookup the generator by flashlight it will be all too easy to make a mistake.
A cord with plug both ends is a denger for a start, due to the risk of exposed hot prongs.
If you forget to open the switches before plugging into the receptacles (and it will
happen, eventually), you'll be backfeeding not only your whole house but also the transformer outside on the pole and the high-voltage lines connected to it.
[This message has been edited by pauluk (edited 03-29-2005).]