NCIDUTIL(1)
π NCIDUTIL(1) π
okay bestie, gather round, because this is ncidutil from the User Contributed Perl Documentation section of your friendly neighborhood manual, and she is so much more than she looks. π
β¨ NAME β¨
ncidutil β the lil script that manipulates entries in the alias, blacklist and whitelist files. that's it. that's the whole job. and she eats every time. π
πΈ SYNOPSIS πΈ
ncidutil [--help|-h] [--man|-m] [--version|-V]
ncidutil [--multi "<blacklist and/or whitelist file names>"]
[--regex|-R] [--ignore1|-i] <arguments>
π¦ DESCRIPTION π¦
so, ncidutil is designed to be called by the NCID server whenever a client asks for something. she's not out here freelancing, she's on call. and heads up: five arguments are required. five. no more, no less, no skipping. π«Ά
what does she do? she can add, modify or remove an alias from the alias file. iconic behavior honestly.
and here's the tea: if an alias gets modified or removed, and if the hangup option of the server is enabled, then ncidutil will go ahead and add or remove that alias entry in the blacklist and/or whitelist files too. she does the extra credit. she does the group project by herself. π
the --multi option is what decides whether the blacklist and whitelist files get searched for an alias, or whether an entry gets added or removed from those files. and plot twist β the entry in question can be an alias in the alias file. iykyk. π
π Options
-h,--helpβ shows you the help message and then dips. bye! β¨-m,--manβ shows you the manual page and exits. meta, right? you're reading the thing that the thing shows you. π-V,--versionβ shows the version and exits. short, sweet, slay. β-i,--ignore1β okay this one is a US/Canada option only, so if that's not your region, no shade, just skip it.
what it does: a leading one in an alias definition and in the calling number gets ignored. like, forgotten. not invited to the party.
normally an alias requires the calling number to appear exactly as it shows up in the cidcall.log. but in the US, a leading 1 may or may not be there in incoming or outgoing calls β it's giving chaos, it's giving inconsistent, and this flag is how you deal with it. π
Default: the number for the alias entry must match the calling number. no leading-one forgiveness. strict queen. π
--multi "<blacklist> <whitelist>"β tellsncidutilthe names of the blacklist and whitelist files to update when an alias is modified. if you're specifying both, separate each one with a space. yes, inside the quotes. yes, it matters.
Default: "" β empty, nothing, crickets. π¦
-R,--regex <0-2>β the regex dial. turn it and see what happens:- if regex =
0, it uses Simple Expressions. - if regex =
1, it uses Posix Regular Expressions. - if regex =
2, it uses Perl-compatible Expressions.
- if regex =
Default: Uses Simple Expressions. she's keeping it simple until you tell her otherwise. πΈ
π Arguments
<filename>β Name of the alias, blacklist, or whitelist file. just point at the file bestie. π<list>β The case-sensitive type of list:Alias,Blacklist,Whitelist. case-sensitive meansaliasis notAlias, so don't do that. π€<action>βadd,modify,remove.
but here's the breakdown by list type:
- for list = Alias:
add,remove, ormodify - for list = Blacklist:
addorremove - for list = Whitelist:
addorremove
so blacklist and whitelist don't get to modify. they get add or remove. that's the rule, periodt. β
<item>β the actual content, and it looks different depending on which list you're in:- For list = Alias, item =
"number&&alias" - For list = Blacklist, item =
"number|name&&" - For list = Whitelist, item =
"number|name&&"
- For list = Alias, item =
Quotes are required. do not forget the quotes. the quotes are the whole vibe.
and what do those words mean?
numberis the number in the call filealiasis from the usernameis the name in the call file
<extra>β the bonus content:- For list = Alias, extra is
"type&&name" - For list = Blacklist, extra is a optional
"comment" - For list = Whitelist, extra is a optional
"comment"
- For list = Alias, extra is
Quotes are required. again!! π₯
and the vocabulary:
nameis the name in the call filetypeis the uppercase alias type orNOALIAS:
NAMEDEP, NMBRDEP, NMBRNAME, NMBRONLY, NAMEONLY, LINEONLY
yes, all caps. she's shouting them for a reason. π
π SEE ALSO π
ncidd.conf.5, ncidd.alias.5, ncidd.blacklist.5, ncidd.whitelist.5, cidalias.1, cidcall.1, cidupdate.1
go read those too, they're all in the family, they all ate. π«Ά
quick vibe check: the synopsis says--multiand--regexcome before your arguments, and--regexwants a number from0to2. the defaults live where they live, and--multidefaults to empty. don't fight it, just work with her. π
and that's the page bestie!! this one is from perl v5.42.0, dated 2025-08-06, and it's the NCIDUTIL(1) manual β go forth and manipulate those entries, you absolute main character. ππ¦β¨
π¦ where this page comes from
- fedora 43: ncid 1.18-4.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms