fix v++
This commit is contained in:
@@ -488,7 +488,7 @@ public class UserConnection {
|
||||
Utils_.sleep(1000);
|
||||
}
|
||||
}
|
||||
public String startShellProcess(RemoteFile directory, String outFileName, String... commands) throws Exception {
|
||||
public void startShellProcess(RemoteFile directory, String outFileName, String... commands) throws Exception {
|
||||
Vector<String> commands_ = new Vector<>();
|
||||
commands_.add("cd " + Utils_.DQuotes(directory.full_name));
|
||||
for (int i = 0; i < commands.length; ++i) {
|
||||
@@ -507,12 +507,20 @@ public class UserConnection {
|
||||
RemoteFile outFile = new RemoteFile(directory, outFileName);
|
||||
if (Exists(outFile))
|
||||
sftpChannel.rm(outFile.full_name);
|
||||
System.out.println("connecting shell");
|
||||
ShellConnect();
|
||||
System.out.println("done");
|
||||
System.out.println("sending start command...");
|
||||
pin.write(("nohup " + start_command + " &\r\n").getBytes());
|
||||
System.out.println("done");
|
||||
System.out.println("waiting for out file creation...");
|
||||
waitForFileCreation(outFile);
|
||||
waitForFileFree(outFile);
|
||||
System.out.println("done");
|
||||
// waitForFileFree(outFile);
|
||||
System.out.println("disconnecting...");
|
||||
ShellDisconnect();
|
||||
return readFromFile(outFile).replace("\n", "").replace("\r", "");
|
||||
System.out.println("done");
|
||||
// return readFromFile(outFile).replace("\n", "").replace("\r", "");
|
||||
}
|
||||
//-- проверка существования рабочего пространства.
|
||||
public void CheckUserInitialization(String email) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user