Hi I tried using rexec task to invoke a shell script.
<rexec userid="${aname}" password="${apass}" server="${host}" command="cd ${i_dir}; echo $A_HOME $JDK_HOME" /> The output is as follows: [rexec] /af/gord [echo] But when I check the local host of this unix box, the variables are set in .profile. When echoed, they are displayed. How do I make sure the shell sets these variables in Ant script using rexec ? source command isn't available on the unix box.