all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: diary-mail-entries
Date: Thu, 13 Oct 2022 21:21:37 +0200	[thread overview]
Message-ID: <87pmevzfzy.fsf@dataswamp.org> (raw)
In-Reply-To: 14243.1665680030@eddie.fios-router.home

aalinovi wrote:

> I am running emacs-28.2 on OpenBSD-current. I will state at
> the outset that I do no know lisp but have acquired a copy
> of Robert Chassell's "Emacs Lisp: An Introduction" and have
> started going thru it.

Good, reading is always good, but write code from day 0 ...

> After several hours of experimenting I have finally got M-x
> diary-mail-entries to work. What I now need is to enable
> that in a cron job to run each night.

You can run an Elisp file like a shell script (not literally),
with Emacs,

  $ emacs --batch --load FILE

I'd recommend making that work _in_ Emacs first, then as
above, only the third step would be from cron ...

Here is an example, with emphasis on AN example, not saying
it's a GOOD example of program design ...

  https://dataswamp.org/~incal/emacs-init/piles.el
  https://dataswamp.org/~incal/hits/hits.gpi
  https://dataswamp.org/~incal/piles-all

With

  $ crontab -l
  30 2 * * * /home/incal/public_html/hits/piles-all; /home/incal/public_html/hits/hits.gpi

It's a cool pic anyway :)

  https://dataswamp.org/~incal/hits/hits.png

> Not knowing lisp I have no idea where or how to begin.

If you feel you don't know enough Lisp start with things at
a level where you can get going ... those very small programs
don't have to be useful. Typically you don't have to write so
many of those before you can actually start with things that
are simple yes but actually useful as well.

-- 
underground experts united
https://dataswamp.org/~incal




  parent reply	other threads:[~2022-10-13 19:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13 16:53 diary-mail-entries aalinovi
2022-10-13 17:31 ` diary-mail-entries Thorsten Bonow
2022-10-13 19:21 ` Emanuel Berg [this message]
2022-10-13 19:23 ` diary-mail-entries Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2022-10-14 13:42 diary-mail-entries aalinovi
2022-10-16 20:31 ` diary-mail-entries Thorsten Bonow
2022-10-17 11:21   ` diary-mail-entries aalinovi
2007-03-20 21:49 diary-mail-entries sven.bretfeld
2007-03-21  4:45 ` diary-mail-entries Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmevzfzy.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.