Hi Scott

Thanks for your reply.


Ø  What about trying to see if myProg is the issue on Win7 rather than Jenkins? 
 Can you echo something (like ENV >>out.txt) to see if that can write out to 
your output file?  If that succeeds, then I'd look at what myProg is doing.
I tried dir > dir.txt and that gives the expected result.  So the situation is 
that its only our program that does not write to stdout when run on a Windows 7 
slave under Jenkins.  From a Win 7 command prompt it works fine. On a WinXP 
slave it works fine.


Ø  do you have your Win7 service for Jenkins set to be able to interact with 
the desktop?

I will have to look into this.

Best regards

David

From: [email protected] 
[mailto:[email protected]] On Behalf Of Scott Evans
Sent: 28 March 2014 14:20
To: [email protected]
Subject: Re: No program output when running batch command on Windows 7

Don't know if it's relevant to what's going on in your situation (as we don't 
have our Win7 agents running as services, but do you have your Win7 service for 
Jenkins set to be able to interact with the desktop?   (I don't remember 
specifically where that's set or what it's called, but I know we had to do 
something similar with some Win7 situations)
Can you do a copy into that directory via your Jenkins job to verify that 
Jenkins has permissions to write to that location?  I'd assume so since it 
seems that the out.txt gets created.

What about trying to see if myProg is the issue on Win7 rather than Jenkins?  
Can you echo something (like ENV >>out.txt) to see if that can write out to 
your output file?  If that succeeds, then I'd look at what myProg is doing.
Scott

On Fri, Mar 28, 2014 at 9:07 AM, David Aldrich 
<[email protected]<mailto:[email protected]>> wrote:
Hi

We have a regression test that runs happily under Jenkins on a Windows XP slave 
but fails on a Windows 7 slave.  I believe that Jenkins runs as a Windows 
Service in both cases.

Part of the test is to run our application and redirect the output to a file:

myProg > out.txt

This runs as a Windows batch command step.  On the Win XP slave out.txt 
contains the expected output.  On a Windows 7 slave out.txt is empty.

If I delete the redirection so that I just have:

myProg

the Win XP slave's  console output correctly shows the expected output but 
nothing appears for the Win 7 slave.

If I run the program manually on the Win 7 slave from a DOS command prompt I 
see the expected output.

Please can anyone suggest what is going on?

Best regards

David
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


Click 
here<https://www.mailcontrol.com/sr/YUv!jy0K2K7GX2PQPOmvUjXuKmsvWB!mx!vqgjlKHAgjmmy0JodEY5rmx3H0qkiWqSIMHI4fMA0Ds2jC!2iYuQ==>
 to report this email as spam.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to