рефакторинг команд ssh
v++ динамическая смена названия прохода Анализ Кода
This commit is contained in:
@@ -15,7 +15,7 @@ public class RemoteSingleCommand extends CurrentConnectionPass<String> {
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
RemoteFile file = new RemoteFile(user.connection.sftpChannel.getHome(), Utils.getDateName("out"));
|
||||
user.connection.ShellCommand(command + " 1>" + Utils.DQuotes(file.full_name));
|
||||
user.connection.Command(command + " 1>" + Utils.DQuotes(file.full_name));
|
||||
if (user.connection.Exists(file)) {
|
||||
target = user.connection.readFromFile(file);
|
||||
user.connection.sftpChannel.rm(file.full_name);
|
||||
|
||||
Reference in New Issue
Block a user