Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The following command executed on a Raspberry Pi equipped with a RaspiCam behaves differently depending on whether the command is run from the terminal (via wolfram) or a notebook (via mathematica):

<<"!raspistill -t 5 -k -o image.jpg"

In the terminal, the function behaves as expected: a preview window appears and raspistill maintains control until the user presses Enter twice. In the notebook interface, however, raspistill behaves as if it is receiving keypresses and eventually exits. It is possible to work around this issue to execute a terminal which calls raspistill, e.g.:

<<"!lxterminal -e \"raspistill -t 5 -k -o image.jpg\""

Does anyone know why the behavior of executing external commands would differ between the two flavors (?) of Mathematica, or how I might go about debugging this issue further?

share|improve this question
Note to self: useful ref – bobthechemist May 28 '15 at 16:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.