Score:0

How to telnet to a unix socket in debian to test memcached

br flag

To test memcached on Ubuntu, I would run this command:

echo "stats settings" | nc -U /run/mydir/memcached.sock

However now I have changed to Debian, and Debian nc does not support the -U option.

I have tried ss, listen, telnet -b /run/mydir/memcached.sock with no joy.

What is the equivalent command in Debian?

Score:1
in flag

Install the ncat or the netcat-openbsd package, both provides a version of nc supporting -U.

If you don't have nc, you can connect to a unix socket with socat like this:

socat - UNIX-CONNECT:/the/path/to/the/socket
run_the_race avatar
br flag
netcat-openbsd did the trick thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.