unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Instruct emacs --batch to wait for something
@ 2021-11-17 16:41 Rodrigo Morales
  2021-11-18 16:20 ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Morales @ 2021-11-17 16:41 UTC (permalink / raw)
  To: help-gnu-emacs


I'm trying to use Emacs as a tool for getting the text representation of
a website. For doing this, I'm using "eww" and I've written the
following command that I intend to use in the command line.

#+begin_src bash
emacs \
  --batch \
  --eval='(eww "https://www.gnu.org/software/emacs/manual/html_node/emacs/Intro.html")' \
  --eval='(with-current-buffer "*eww*" (princ (buffer-string)))'
#+end_src

The problem with this command is that it shows the following instead of
showing the website.

#+RESULTS:
#+begin_example
Loading https://www.gnu.org/software/emacs/manual/html_node/emacs/Intro.html...
#+end_example

My question is: How can I instruct Emacs to wait for something when the
=--batch= flag is used?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-18 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 16:41 Instruct emacs --batch to wait for something Rodrigo Morales
2021-11-18 16:20 ` Marcin Borkowski
2021-11-18 19:05   ` Rodrigo Morales

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).