I found a solution by my own: I used a parallel task. One for the Matlab call and one for a tail -f command as daemon. tail -f is killed automatically, if Matlab has finished:
<target name="all"> <parallel> <exec dir="." executable="cmd.exe" output="out.log" logError="true" failonerror="true"> <arg value="/c"/> <arg value="echo test1 && sleep 1 && echo test2 && sleep 1 && echo test3"/> </exec> <daemons> <exec dir="." executable="tail.exe" logError="true" failonerror="true"> <arg value="-f"/> <arg value="out.log"/> </exec> </daemons> </parallel> </target> Am Mittwoch, 3. Juli 2013 09:57:28 UTC+2 schrieb Markus Bauer-Sommerfeld: > > I have setup a Jenkins job which calls an ANT script. This ANT-script > calls Matlab to codegenerate and compile Software. Matlab writes > continously while working to a logfile. This target takes about 90--150mins. > > Is it possible to redirect the content of the matlab logfile to the ANT > console to follow the Jenkins job? > > My current solution loads the logfile after finishing the task which calls > matlab, so I have no possibility to get information whats up in the running > matlab process: > > [...] > <loadfile property="Logfile" > srcfile="${env.WORKSPACE}\call_matlab.log" failonerror="false"> > <filterchain> > <prefixlines prefix="[acmake]"/> > </filterchain> > </loadfile> > <echo message=""/> > <echo message="${Logfile}"/> > [...] > > Thanks in advance for a reply > Markus > -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.