I have a series of system calls using this syntax:
(call-process "/bin/sh" nil nil t "-c" command)
where command is the shell command. I wonder if there is a way to print the output when I have these system calls in an commands.el file and I call it with emacs --script commands.el. Currently, the commands are executed but all of the output appears to be captured and not printed.
nilas the third argument. You can specify a different buffer through this parameter, too.tfor the third argument but it doesn't get printed either (not sure what "current buffer" would be when ran as a script).*scratch*buffer. (Update: Confirmed.) That one contains some comments so it's probably better to create a new, empty buffer when you start.