<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>No, not generally - your method would capture STDOUT only, not STDERR.</div><div><br></div><div>You'd want to do something like:</div><div><br></div><div>$ /path/to/command &gt; /path/to/logfile 2&gt;&amp;1</div><div><br></div><div>More here:<br></div><div><br></div><div>http://stackoverflow.com/questions/818255/in-the-bash-shell-what-is-21<br><span></span></div><div><br></div><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div id="yiv1630523118"><style type="text/css"><!--#yiv1630523118 DIV {margin:0px;}--></style><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;">So '&gt; /path/to/my.log'
 is not sufficient for capturing error messages?<br></div></div></div></div></blockquote></div></div></body></html>