ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: Problem with SSHEXEC and nohup
Date Fri, 13 May 2005 17:12:20 GMT
The command does not work, because you need to redirect STDxxx file 
handles to /dev/null (or some file(s)) first. You may also need to run a 
script interpreter first, or create a separate script in order to be 
able to redirect STDxxx handles.

- Alexey.

Dave Bartmess wrote:

>I'm trying to do a four-task parallel call, using sshexec to call the
>remote builds. Each build is a replica of the calling build, just on a
>different platform. 
>
>The build script portion is below.
>
>The problem is, when ant executes the sshexec task, despite what I put
>in the remotebuild.sh, such as "nohup ... &" (insert command for "...")
>or send the command through sshexec as "nohup remotebuild.sh 2&gt;&amp;1
>&gt;build.log &amp;", it won't work. It waits for the build command
>inside the remotebuild.sh to complete, no matter if the build command
>itself is nohup'd, or the sshexec command is nohup'd.
>
>I could use some help. I've tried every alternative I could think of...
>
>Thanks!
>
>*************************************************
>(WITH nohup in the ssh'd command)
>
>local build script:
><target name="build-linux">
>  <sshexec 
>      command="nohup ./remotebuild.sh ${product.name} ${build.number}
>2&gt;&amp;1 &gt;build.log &amp;"
>      username="${Linux.build.user}"
>      host="${Linux.build.host}"
>      keyfile="${env.HOME}/.ssh/id_dsa"
>      trust="true"/>
>  </target>
>
>remote build script:
>cvs co -A $PRODUCT
>./build installer.xml -Dbuild.number=$2 installer
>exit
>
>*************************************************
>(WITH nohup in the remote command script)
>
>local build script:
><target name="build-linux">
>  <sshexec 
>      command="./remotebuild.sh ${product.name} ${build.number}"
>      username="${Linux.build.user}"
>      host="${Linux.build.host}"
>      keyfile="${env.HOME}/.ssh/id_dsa"
>      trust="true"/>
>  </target>
>
>remote build script:
>cvs co -A $PRODUCT
>nohup ./build installer.xml -Dbuild.number=$2 installer 2>&1 >build.log
>&
>exit
>
>*************************************************
>
>  
>

-- 
------------------------------------------------------------------------
/ Alexey N. Solofnenko
home: http://trelony.cjb.net/
/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message