Re: GNU/Linux Dictionaries

Liste des GroupesRevenir à col advocacy 
Sujet : Re: GNU/Linux Dictionaries
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.os.linux.advocacy comp.os.linux.misc
Date : 23. May 2025, 22:45:59
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2505231745@qaz.wtf>
References : 1 2 3 4
User-Agent : Vectrex rn 2.1 (beta)
In comp.os.linux.misc, Farley Flud  <ff@linux.rocks> wrote:
On Fri, 23 May 2025 16:39:39 -0000 (UTC), Eli the Bearded wrote:
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.

Suit yourself, but

I use dict and leave the daemon running all the time. It's not that
resource intensive. It's running an a virtual machine with 1cpu and
1/2 gig ram ("465056 kB" according to /proc/meminfo), as a side project
to a web server.

top - 21:32:43 up 6 days, 3 min,  1 user,  load average: 0.04, 0.03, 0.01
Tasks: 100 total,   1 running,  99 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :    454.2 total,     40.4 free,    232.0 used,    181.8 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.    194.6 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
...
    707 dictd     20   0   44564  43080   1788 S   0.0   9.3   0:00.34 dictd


:r! echo 465056 0.093*p | dc
43250.208

This way I can use one install from multiple locations.

Elijah
------
still doesn't know exactly what OP wants

Date Sujet#  Auteur
22 May20:23 * GNU/Linux Dictionaries13Farley Flud
22 May21:32 +* Re: GNU/Linux Dictionaries2vallor
22 May22:01 i`- Re: GNU/Linux Dictionaries1Farley Flud
22 May21:43 +* Re: GNU/Linux Dictionaries2🇵🇱Jacek Marcin Jaworski🇵🇱
22 May21:49 i`- Re: GNU/Linux Dictionaries1%
22 May21:49 +- Re: GNU/Linux Dictionaries1%
22 May23:17 +* Re: GNU/Linux Dictionaries6Eli the Bearded
23 May11:13 i+* Re: GNU/Linux Dictionaries4Farley Flud
23 May17:39 ii`* Re: GNU/Linux Dictionaries3Eli the Bearded
23 May19:59 ii `* Re: GNU/Linux Dictionaries2Farley Flud
23 May22:45 ii  `- Re: GNU/Linux Dictionaries1Eli the Bearded
23 May11:18 i`- Re: GNU/Linux Dictionaries1Farley Flud
23 May13:32 `- Re: GNU/Linux Dictionaries1Chris Ahlstrom

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal