redirecting output of script call to tmp/output file