It sounds like the remote process is not exiting, or holding onto the
stdout/stderr.  If you run your sample with a "real" rsh, does the rsh
exit automatically?

ie: rsh host ". ./.profile ; cd abc ; ... ; exit"

Is "\u038" '&'?

-Justin
office 8-383-6725, 212-272-6725; cell 917-861-6042
-----Original Message-----
From: Z W [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 28, 2008 11:16 PM
To: Ant Users List
Subject: Re: rexec and setting env variables on remote host

Also within "try" shrell script, I have a nohup command

ie inside try.sh. I have

nohup ./start &

where "start" is another shell script

On Jan 28, 2008 8:03 PM, Z W <[EMAIL PROTECTED]> wrote:

> Rob
>
> Appreciate your response there.
> Your approach does allow the env variables read but
> I'm not sure why rexec hangs when it reaches the end of command
execution.
>
>
> <
> rexec userid="${a_user}"
>
> password="${a_word}"
>
> server="${a_host}"
>
> command=". ./.profile;
>
> cd ${a_dir};
>
> pwd;
>
> echo $MD $JAM;
>
> nohup ./try ${Test} \u038 ;
>
> echo 2;
>
> exit;
> ">
>
> </
> rexec>
>
> <
> echo message=" end of target"/>
>
>
>
> Output
>
>     [rexec] stty: : Invalid argument
>     [rexec] /root
>
>     [rexec] /mdm /opt
>     [rexec] Starting prstat.
>     [rexec] pid = 1985
>     [rexec] 2                <---------- hangs there, it doesn't move
on
> to echo message.
>
>
>
> Is there a way to get out of <rexec> task or is it a defect of <rexec>
> task ?
>
> Thanks
>



***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to