This content has been marked as final. Show 4 replies
Try escaping the back ticks. This works for me using ssh and bash shell:
ssh remotesys "/usr/platform/\`uname -i\`/sbin/prtdiag -v"
This solves my problem, indeed.
Thanks a lot.
In top of this there also is a speed problem:
local_prompt> rsh <remote_machine> "/usr/platform/\`uname -i\`/sbin/prtdiag -v"
This goes much slower than:
local_prompt> rsh <remote_machine>
remote_prompt> /usr/platform/\`uname -i\`/sbin/prtdiag -v
Do you have any idea what is causing this and how I could raise the speed?
P.s. as this latter question was treating another problem (speed instead of local/remote execution), I had written another thread, but as requested, I will continue in this thread.
First of all; I would like to suggest you migrate to ssh instead of rsh. ssh is much more secure and most of the IT world has made the switch.
As far as your new problem, I've never seen that before. I've seen slowness like you describe when the target system cannot resolve the name from the source IP address but that usually slows both interactive and command modes.
Another thing maybe there's something in the shell startup on the target system that stalls in non-interactive mode? You might try moving all of the dot files out of the way on target system and see if it behaves better.