これが私のコードの一部です:
Channel channel_1 = session.openChannel("exec");
int t=5;
((ChannelExec)channel_1).setCommand("echo value : $(t)>> test.sh");
channel_1.connect();channel_1.disconnect();
リモート マシンのスクリプト「test.sh」を「value : 5」と記述したい
しかし、私が得る出力は、スクリプトの「値:」です。