emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [OT] Babel user queries like SH "read CONFIRM"


From: brian powell
Subject: [O] [OT] Babel user queries like SH "read CONFIRM"
Date: Wed, 8 Feb 2012 11:20:43 -0500

* Is there a simple way in BABEL to interact/query a user--something like this won't work:

#+begin_src sh
cat blah-install.sh
echo -n " Sure you want to run this install script code to install BlahSoftware? (y/n): "
read CONFIRM
  case $CONFIRM in
    y|Y) sh blah-software-install.sh;;
    n|N)
      echo "
ERROR 5: User declined the agreement.
"
      exit
      ;;
    *) echo "
That is not vaild input and/or user declined to run install script.
"
  esac
#+end_src


reply via email to

[Prev in Thread] Current Thread [Next in Thread]