Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.