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 7525811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:39:20+00:00 2026-05-30T03:39:20+00:00

I am running a minecraft server in a screen session. I also am using

  • 0

I am running a minecraft server in a screen session. I also am using a named pipe in order to send commands to the minecraft server from other scripts.

I can see output from the server in the screen session, however I cannot enter any. I expected this anyway since I am taking input from the named pipe.

Here’s the line I run to start everything:

screen -S minecraft sh startup.sh

Here’s startup.sh:

#!/bin/bash
rm mct
if [ ! -p mct ]; then
    mkfifo mct && chmod 0777 mct
fi

tail -f mct | java -Xincgc -Xmx2048M -jar minecraft_server.jar

I want to be able to enter commands from the screen session and from the named pipe. Is there a way I can accomplish this? I’m just now messing around with bash scripts, been learning a lot about it today. I just can’t seem how to do this.

  • 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-30T03:39:21+00:00Added an answer on May 30, 2026 at 3:39 am

    One approach is to run your tail -f mct concurrently with a command that reads from the console and writes to the same anonymous pipe:

    ( tail -f mct & cat ) | java -Xincgc -Xmx2048M -jar minecraft_server.jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I'm running a Minecraft server for friends on a VPS, and I'm attempting
I've got a rails website and a small minecraft server running on a linode
I'm running a small minecraft server with this command: /usr/lib/jvm/java-6-sun/bin/java -Xmx2048M -Xms2048M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing
I'm using a crontab to run a maintenance script for my minecraft server. Most
For the game Minecraft, the general approach when running the server application is to
Running sql server 2005 I have database A. I am trying to restore from
Running a Selenium 2 RemoteWebDriver server using java -jar selenium-server-standalone-2.15.0.jar . I always get
Running a rails site right now using SQLite3. About once every 500 requests or
Running OS X Leopard an MacBook Pro from Jan. 2008. I used to run
Running an ASP.Net website and using TinyMCE for content management. Users need to be

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.