Write and pull files from /tmp