ksh远程函数ssh调用另一个远程函数

问题描述 投票:0回答:1
function test_me
{
sqlplus /nolog <<EOF
connect / as sysdba
oradebug dump systemstate 266
oradebug tracefile_name
EOF
}

function check_me 
{
ssh ${HST2} "$(typeset -f); test_me"
}

ssh ${HST1} "$(typeset -f); check_me"

函数test_me的定义在HST1上看起来不错,但是在EOF上被截断到HST2,失败,并且没有匹配的<< >>

有人有解决方法吗?

function test_me {sqlplus / nolog << [

ssh ksh
1个回答
0
投票
两件事简化了这一点:
© www.soinside.com 2019 - 2024. All rights reserved.