From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rodrigo Morales Newsgroups: gmane.emacs.help Subject: Instruct emacs --batch to wait for something Date: Wed, 17 Nov 2021 11:41:29 -0500 Message-ID: <87czmy91l2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4177"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 17 17:48:31 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnO6p-0000vh-Ky for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 17:48:31 +0100 Original-Received: from localhost ([::1]:41668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnO6o-0006Mb-Kf for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 11:48:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnO2M-0000VC-VB for help-gnu-emacs@gnu.org; Wed, 17 Nov 2021 11:43:55 -0500 Original-Received: from [2607:f8b0:4864:20::930] (port=45577 helo=mail-ua1-x930.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnO2G-0001Cq-EW for help-gnu-emacs@gnu.org; Wed, 17 Nov 2021 11:43:54 -0500 Original-Received: by mail-ua1-x930.google.com with SMTP id ay21so7204308uab.12 for ; Wed, 17 Nov 2021 08:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=shb6FZ4bCY8058OmmKlYLaqxdhXvz6Aonq9acUcSbw4=; b=o7IOpo4HuooftxdAPruTzKBGp34wlWzJ7dtnu3BzzPCthNZOKvBibQhv0MC4lwQLy+ W3WLkDrKfuMhn8Dx2WinU7K4Am+kctFGymJQLwv1JomPbwReEuVb+8dI2nC7rNi8QuT8 q3cHXYBohP26ZTm6ocVcu1LiD/iw096zIZk+5FZ/5l7N9AjE8xpqqTfUIMc0uHFJP+aM IJWDjcKZZwLwQOfS/G4tIk53bYenHBGCHH/IeusHxmERbKYTXjWyE6vTXYRPor42AGwP 4N6IQswqzbXRhzGK8lpZ2h3S6BnWzMLi94yfezVY3SGmKdaaLwwkM1fhRf1ynI3XagmB Ag8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=shb6FZ4bCY8058OmmKlYLaqxdhXvz6Aonq9acUcSbw4=; b=H1H+0rNuAK1L7/Co19pQgRteKlW2sQJevtbfW/cZsKmr5MD9W9EH8yph3MhrfM75FA hap8iXZCYWh7bb6O4OPUIf8Q4kZc0ryXJSSe8g6Dbdc7zuSJiiWKvMJsibF3bRjPWLnm RdfuKg268qRKIUMzvPxDyg9adtMz4LC7/MM4DPq8SDEYBe1J8e8lh/eI+pX2bR4ojxta ks1+4Y5l9vSdbYKJe2PfGFkxN1jsztezLe4u7xlaDO8s+lKAgSH/ohc29/claKVefBax 5BYasqe7/nBImhYcDHQu8NB2tBLEkRNSEYZFC4kjuW43zXbe/UDZpOZntywO79JAMd5X /Tog== X-Gm-Message-State: AOAM530SACpM9SA/26WrQycfTbIxPOwvt1D85eLuqIoMU76fqnQOUpmB Jj/J5/zY9Cj1UD79GtG7j1bXqDFx+PSI2g== X-Google-Smtp-Source: ABdhPJzmxVNYYW20QREeCaWyHUFga5B0g6bBZJHSbuIlmT4KsF+o7Aqm8ZRpmf57Wo71ZXwleHgwMg== X-Received: by 2002:a67:2dc5:: with SMTP id t188mr68837380vst.2.1637167426614; Wed, 17 Nov 2021 08:43:46 -0800 (PST) Original-Received: from r1 ([181.65.25.152]) by smtp.gmail.com with ESMTPSA id y22sm168780vsy.33.2021.11.17.08.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 08:43:46 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::930 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::930; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-ua1-x930.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134641 Archived-At: 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?