in reply to Capturing shell command error

How do I redirect outut from system () to a file and also to screen