<p>Actuall, std-- redirection does.. mostly.</p><p>C:>echo "this is a test " > test.txt<br><br>C:>type test.txt<br>"this is a test "<br><br>C:\>echo "testing 2 " >> test.txt 2>&1<br>
<br>C:\>type test.txt<br>"this is a test "<br>"testing 2 "<br><br><br></p><br><div class="gmail_quote">On Thu, Feb 5, 2009 at 12:00 PM, <span dir="ltr"><<a href="mailto:michael.milne@gmail.com">michael.milne@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi / Thanks for this. We're on Windows so unix commands won't work...<br>
<div><div class="Wj3C7c"><br>
On 2/5/09, Thierry Florac <<a href="mailto:thierry.florac@onf.fr">thierry.florac@onf.fr</a>> wrote:<br>
> Le jeudi 05 février 2009 à 07:45 -0800, Stephan Richter a écrit :<br>
>> On Thursday 05 February 2009, michael nt milne wrote:<br>
>> > Ran the task and nothing was written to any of the files....?<br>
>><br>
>> Just specify an absolute path then. You do not have to create the file; it<br>
>> is<br>
>> created for you. Mmh, maybe the output is written stderr, in which case<br>
>> this<br>
>> would not work, but I am pretty sure that unix shell has an answer for<br>
>> that<br>
>> too; just read up on it.<br>
><br>
><br>
> If messages are written to stderr instead of stdout, then you should<br>
> do :<br>
><br>
> repozo.py [your params] > /var/log/repozo.log 2>&1<br>
><br>
> to have all outputs into specified file.<br>
><br>
> If you only want to log errors, then :<br>
><br>
> repozo.py [your params] 2> /var/log/repozo.log<br>
><br>
> With hope this helps,<br>
><br>
> Thierry Florac<br>
> --<br>
> Chef de projet intranet/internet<br>
> Office National des Forêts - Département Informatique<br>
> 2, Avenue de Saint-Mandé<br>
> 75570 PARIS Cedex 12<br>
> Mél : <a href="mailto:thierry.florac@onf.fr">thierry.florac@onf.fr</a><br>
> Tél. : +33 01.40.19.59.64<br>
> Fax. : +33 01.40.19.59.85<br>
><br>
> _______________________________________________<br>
> Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
> <a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
> ** No cross posts or HTML encoding! **<br>
> (Related lists -<br>
> <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
> <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
><br>
<br>
<br>
</div></div>--<br>
<font color="#888888">michael<br>
</font><div><div class="Wj3C7c">_______________________________________________<br>
Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
** No cross posts or HTML encoding! **<br>
(Related lists -<br>
<a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>David Bear<br>College of Public Programs at ASU<br>602-464-0424<br>