, , emacs *Shell Command Output* .
, , .
:
(: , /dev/null 100% , emacs, Linux .)
elisp function shell-command elisp, :
(shell-command cmd)
:
(shell-command (concat cmd " > /dev/null 2>&1"))
If you sometimes want to control the output, then you can create one wrapper function that suppresses output through /dev/null, and one wrapper function without suppression, and switch between them as you want.
The above tip was tested on: GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK + Version 3.18.9) 2017-09-20 on lcy01-07 modified by Debian
source
share