pass in $log_fh to system_call