[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn trunk r17244: FAIL (x86_64-unknown-linux-gnu static ra_svn fsfs)

From: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2005-11-09 05:19:21 CET

Garrett Rooney wrote:
> I'm not a windows person, but I'm pretty sure you can't just stick
> python code into a .bat file on windows and expect it to do anything
> useful...

You would have to write the python code to a .py file and have the batch
file call "python file.py". Or use the -c option of python.exe to pass
the python code on the command line.

python -c "import sys; sys.stderr.write('Nothing doing'); sys.exit(-1)"

Put that in the batch file and run the batch file.

> You really need to write out an actual .bat script, I imagine there's
> some way to make a .bat write to the equivalent of stderr, but
> honestly I don't know what the syntax would be...

To redirect handle 1 (stdout) to handle 2 (stderr), this should work.

echo hello 1>&2

This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 9 05:20:42 2005

This is an archived mail posted to the Subversion Dev mailing list.