public synchronized void send(String data) {
		Assert.isTrue(isRunning(), "Shell process is not started.");
		try {
			this.serializer.serialize(data.getBytes(this.charset), this.stdin);
			this.stdin.flush();
		}
		catch (IOException e) {
			log.error(e.getMessage(), e);
			throw new RuntimeException(e.getMessage(), e);
		}
	}
Send data as a String to stdin.
@param data the data
extensions/spring-xd-extension-process/src/main/java/org/springframework/xd/extension/process/ShellCommandProcessor.java