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

Re: svn and wscript

From: BRM <bm_witness_at_yahoo.com>
Date: Fri, 6 Nov 2009 14:44:00 -0800 (PST)

----- Original Message ----
From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
To: users_at_subversion.tigris.org
Sent: Fri, November 6, 2009 6:43:07 AM
Subject: Re: svn and wscript
> > LogSectionOpen "runCmd"
> > do while not objExecObject.StdOut.AtEndOfStream
> > strText = objExecObject.StdOut.ReadLine()
> > Log strText, "", LOG_NORMAL
> > loop
> While waiting for the process to finish, you need to pump its output to the
> log already.
> BTW, you are discarding any output to stderr, I think. Try using

I didn't catch this earlier - as I think there may be some other issues - but the proper
thing to do is the following:

Set objExecObject = objShell.Exec(cmd)
strText = objExecObject.StdOut.ReadAll()

I use things in a javaScript with the CollabNet build of the svn command-line client, and it works very well.
I don't have any issues with buffering at all, but I do have to read all of it .

For some reason doing the loop just doesn't work - I think WSH doesn't buffer right for that to function or something.

Ben

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2415285

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-06 23:45:21 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.