executable_run-in-xterm 186 B

12345678910111213
  1. #!/bin/bash
  2. input_from_emacs=$*
  3. temp_file="$(mktemp -t "bash.XXXXXXXXXX")"
  4. {
  5. cat "$input_from_emacs"
  6. }>"$temp_file"
  7. xterm -e "bash $temp_file; read wait"
  8. rm --force "$temp_file"