Commit 79dd9ba6 authored by Andrey Filippov's avatar Andrey Filippov
Browse files

remote notification of command complete

parent ea85f7e1
Loading
Loading
Loading
Loading
+11 −8
Original line number Original line Diff line number Diff line
@@ -924,6 +924,10 @@ if (MORE_BUTTONS) {
			}
			}
			this.SYNC_COMMAND.isRunning=false;
			this.SYNC_COMMAND.isRunning=false;
			this.SYNC_COMMAND.stopRequested.set(0);
			this.SYNC_COMMAND.stopRequested.set(0);
		}
		
	}
	public void remoteNotifyComplete(){
		String shellCommand="ssh andrey@192.168.0.137 paplay /usr/share/sounds/KDE-Im-Error-On-Connection.ogg";
		String shellCommand="ssh andrey@192.168.0.137 paplay /usr/share/sounds/KDE-Im-Error-On-Connection.ogg";
		try {
		try {
//			Process p = Runtime.getRuntime().exec("shell command");
//			Process p = Runtime.getRuntime().exec("shell command");
@@ -931,8 +935,6 @@ if (MORE_BUTTONS) {
		} catch (IOException e) {
		} catch (IOException e) {
			System.out.println("Failed shell command: \""+shellCommand+"\"");
			System.out.println("Failed shell command: \""+shellCommand+"\"");
		}
		}
			Toolkit.getDefaultToolkit().beep();			
		}
		
		
	}
	}
	public static String stack2string(Exception e) {
	public static String stack2string(Exception e) {
@@ -4160,6 +4162,7 @@ if (MORE_BUTTONS) {
			double rms=            FOCUSING_FIELD.calcErrorDiffY(focusing_fx, false);
			double rms=            FOCUSING_FIELD.calcErrorDiffY(focusing_fx, false);
			double rms_pure=       FOCUSING_FIELD.calcErrorDiffY(focusing_fx, true);
			double rms_pure=       FOCUSING_FIELD.calcErrorDiffY(focusing_fx, true);
			System.out.println("rms="+rms+", rms_pure="+rms_pure+" - with old parameters may be well off.");
			System.out.println("rms="+rms+", rms_pure="+rms_pure+" - with old parameters may be well off.");
			remoteNotifyComplete();
			return;
			return;
		}
		}