Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7599869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:46:01+00:00 2026-05-30T22:46:01+00:00

this is how I’m getting the stats now: echo -e stats\nquit | nc 127.0.0.1

  • 0

this is how I’m getting the stats now:
echo -e “stats\nquit” | nc 127.0.0.1 11211

I can’t use expect as it’s not part of a default installation.

Is there a way to get memcached stats without nc?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:46:02+00:00Added an answer on May 30, 2026 at 10:46 pm

    Your question doesn’t specify why you’re looking for an alternative to netcat, so it’s hard to to tell what you’re looking for. You could do it in bash like this:

    exec 3<>/dev/tcp/127.0.0.1/11211
    echo -e "stats\nquit" >&3
    cat <&3
    

    You could do it using telnet:

    (echo -e 'stats\nquit'; sleep 1) | telnet localhost 11211
    

    The sleep is to precent telnet from exiting before receiving a response from memcached.

    You could also write something simple in python or perl or some other high level scripting language. Or brush up on your c. There are lots of options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a bit of a long shot, but if anyone can figure it
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
This is an example of the code am using. I use a modified version
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This is my database table. Now I want to combine Branch_Id, Acc_no and Acc_Type
This seems 101-level, but I can't find an answer! (instead I find links to
This is probably basic stuff, but I can't find the clear answer anywhere.. Lets
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.