public int doStartTag() throws JspException  {
		try {
			JspWriter out = pageContext.getOut();
			if (command == null) { // This is a "CANTHAPPEN" since the TLD defines it as required
				throw new JspException("CommandOutputTag: command attribute is required");
			}
			
			Process p = Runtime.getRuntime().exec(command);

			InputStream streamFromProcess = null;
			if (output) {
				// getInputStream gives an Input stream connected to
				// the process p's standard output. Just use it to make
				// a BufferedReader to readLine() what the program writes out,
				// and copy each line to the JSP output.
				streamFromProcess = p.getInputStream();
			} else if (error) {
				streamFromProcess = p.getErrorStream();
			}
			if (streamFromProcess == null) {
				throw new JspException("One of output='true' or error='true' is required");
			}
			
			BufferedReader is = new BufferedReader(new InputStreamReader(streamFromProcess));
			
			String line;
			while ((line = is.readLine()) != null) {	
				out.println(line);
			}
			is.close();
			
		} catch (IOException ex) {
			throw new JspException("TextImageServleg.doEndTag: IO Error", ex);
		}
		return EVAL_BODY_INCLUDE;
	}