paint output to file

I want to capture the output of p.map to a file for transport to another site.
Can someone tell me how this is done?

thank you

allan