As an answer, which resule would you want? There are multiple commands in the 
sshexec string. You are testing to assure that directory ${a_dir} exists or 
making the dir apparently. both commands "test" and "mkdir" return values. Does 
the destination OS perform shortcut execution? This problem is similar to the 
problem in compilers. There is left and right association as well. If the shell 
is right associative, the mkdir executes first and fails if the directory is 
there but the test passes because the directory exists. You now have a failure 
and a success. Do you want both or just the result that comes from the or?

Z W <[EMAIL PROTECTED]> wrote: Hi

I don't get it. Why is the output not stored in the property after executing
sshexec ?




username="${a_name}"

password="${a_password}"

command=" test -d ${a_dir} ||

mkdir -m 777 ${a_dir};

cd ${a_dir};

exit $?; "

outputproperty="rc"

trust="true"/>




But I get


[sshexec] Connecting to host1:22

Setting project property: rc ->

[echo] inside /rt/sm/pacs sshexec_rc =

Any help is appreciated on such an example or a workaround example to store
this return code.

Thanks



Thank you,
Chuck Holzwarth
(804) 403-3478 (home)
(540) 335-3171 (cell)
       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Reply via email to