# command that redirects STDERR to file $command = 'myapp --flag=somearg 2>>/var/log/myapp.err';