exec "cmd1 >/tmp/cmdone.log 2>&1"; #combine stdout/stdin exec "cmd2 >/tmp/cmdtwo.out 2>/tmp/cmdtwo.err";# split them up