Sujet : Re: GNU/Linux Dictionaries
De : ff (at) *nospam* linux.rocks (Farley Flud)
Groupes : comp.os.linux.advocacy comp.os.linux.miscDate : 23. May 2025, 19:59:11
Autres entêtes
Organisation : UsenetExpress - www.usenetexpress.com
Message-ID : <pan$8ae06$997ef156$4e369275$d0a52a8a@linux.rocks>
References : 1 2 3 4
On Fri, 23 May 2025 16:39:39 -0000 (UTC), Eli the Bearded wrote:
Web interface is not incompatible with done locally. You started this
with dict/dictd, which is a internet service. Just because it is an
internet service doesn't mean the client and the server can't be on the
same machine. I run a local webserver for local files and use either
Firefox or lynx to localhost to access them. But curl would also work.
Yes, dictd is based on the client-server model but it is possible
to execute it locally on a one-shot basis. I use the following script:
#! /bin/bash
printf "define * \"$1\"\n" $1 | dictd -i
Call the script "check-word" and it will start the daemon,
look up the definition using the dictionaries specified in
/etc/dictd.conf, print to stdout, and then terminate the daemon.
-- Systemd: solving all the problems that you never knew you had.