In the past, when astronauts needed to relieve themselves on their missions, they used a plastic bag with an adhesive rim, stuck it to their bottoms and went in it. A disinfectant was then added to the bag and the mixture was kneaded until it became like dough.
