Are shore power cables legal to use for temporary power connections, like to connect portable generators to a switchboard while the main building generators are undergoing mainenance/upgrade? NEC seems silent on the matter- would it rely completely on the UL listing? They're perfectly suited for this, though- flexible, tough, watertight, weathertight, etc.

By the same token, could other UL listed cable (like welding cable) be used in permanant installations? I've seen it done and been told it was legal, but never pressed the issue.