Re: Launching bat file using execbootstrapper
cmkf <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Nathan - Thanks for the explanation. I was able to remove the 1>nul and it still appears to run the bat correctly. I will keep an eye on it just to make sure there are no errors, but at this point I do not think I need it. Nathan Carbino wrote: > > CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OF > [[/S] [/C | /K] string] > > /C Carries out the command specified by string and then terminates > > So without the /c it was basically opening a cmd shell and then exiting > without running your script. You can try removing the redirect to NUL > and see what happens. > > -----Original Message----- > From: cmkf [mailto:[email protected]] > Sent: Thursday, February 11, 2010 7:22 AM > To: [email protected] > Subject: Re: [Cruisecontrol-user] Launching bat file using > execbootstrapper > > > It works. Thanks to all for all the help and suggestions. What does the > extra > /c do at the beginning of the args part and do I still need the > 1>nul > at the end of the args? > > > MrL wrote: >> >> Try running it like this >> >> <bootstrappers> >> <execbootstrapper command="C:/WINDOWS/system32/cmd.exe" >> workingdir="c:/temp/" args="/c c:/temp/sandbox.bat 1>nul"/> >> </bootstrappers> >> >> MRL >> >> -----Original Message----- >> From: cmkf [mailto:[email protected]] >> Sent: Wednesday, February 10, 2010 4:21 PM >> To: [email protected] >> Subject: Re: [Cruisecontrol-user] Launching bat file using >> execbootstrapper >> >> >> No it doesn't return anything different. I can run the bat file from >> the command line without ever having a problem. >> >> >> Chuck Burgess-2 wrote: >>> >>> Does you bat script return a different exit code if something inside >>> it fails? If not, then the exec task probably thinks it ran fine. >>> CRB >>> >>> >>> On Wed, Feb 10, 2010 at 2:36 PM, cmkf <[email protected]> wrote: >>> >>>> >>>> Tried you suggestion with the same results. Still says the >>>> ExecBootstrapper was succesful when it really was not. >>>> >>>> [cc]Feb-10 15:32:24 ScriptRunner - >>>> [cc]Feb-10 15:32:24 ScriptRunner - c:\temp> [cc]Feb-10 15:32:24 >>>> ecBootstrapper- ExecBootstrapper successful. >>>> [cc]Feb-10 15:32:24 Project - Project sandbox: checking for >>>> modifications >>>> >>> >>>> >>>> Nathan Carbino wrote: >>>> > >>>> > Not sure if this is the problem, but some of the exec commands for > >>>> > CC have trouble with resolving the output from the shell. You may >>>> > be able to redirect to NUL allowing your bat to run. Try: >>>> > >>>> > <bootstrappers> >>>> > <execbootstrapper command="C:/WINDOWS/system32/cmd.exe" >>>> > workingdir="c:/temp/" args="c:/temp/sandbox.bat 1>nul"/> >>>> > </bootstrappers> >>>> > >>>> > >>>> > -----Original Message----- >>>> > From: cmkf [mailto:[email protected]] >>>> > Sent: Wednesday, February 10, 2010 9:00 AM >>>> > To: [email protected] >>>> > Subject: [Cruisecontrol-user] Launching bat file using >>>> execbootstrapper >>>> > >>>> > >>>> > Using cruisecontrol-bin-2.8.2 >>>> > >>>> > I am trying to run a bat file using execbootstrapper and am havng >>>> > no luck. If I run ther bat file from a command prompt it runs with > >>>> > no problem. I have looked at the 'Configuration Reference' site >>>> > and tried the >>>> various >>>> > ways as described there and nothing seems to work. Below is my >>>> > latest attempt. Any help would be appreciated. >>>> > >>>> > <bootstrappers> >>>> > <execbootstrapper command="C:/WINDOWS/system32/cmd.exe" >>>> > workingdir="c:/temp/" args="c:/temp/sandbox.bat"/> >>>> > </bootstrappers> >>>> > >>>> >>> >>> >> ---------------------------------------------------------------------- >> ------ >> -- >>> SOLARIS 10 is the OS for Data Centers - provides features such as >>> DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 > >>> NOW http://p.sf.net/sfu/solaris-dev2dev >>> _______________________________________________ >>> Cruisecontrol-user mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Launching-bat-file-using-execbootstrapper-tp2740 >> 7062p2 >> 7538281.html >> Sent from the CruiseControl - User mailing list archive at Nabble.com. >> >> >> ---------------------------------------------------------------------- >> ------ >> -- >> SOLARIS 10 is the OS for Data Centers - provides features such as >> DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 >> NOW http://p.sf.net/sfu/solaris-dev2dev >> _______________________________________________ >> Cruisecontrol-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user >> >> >> ---------------------------------------------------------------------- >> -------- SOLARIS 10 is the OS for Data Centers - provides features >> such as DTrace, Predictive Self Healing and Award Winning ZFS. Get >> Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev >> _______________________________________________ >> Cruisecontrol-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user >> >> > > -- > View this message in context: > http://old.nabble.com/Launching-bat-file-using-execbootstrapper-tp274070 > 62p27547555.html > Sent from the CruiseControl - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > ------ > SOLARIS 10 is the OS for Data Centers - provides features such as > DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > -- View this message in context: http://old.nabble.com/Launching-bat-file-using-execbootstrapper-tp27407062p27554676.html Sent from the CruiseControl - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev