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

  • Home
  • SEARCH
  • 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 6121807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:49:34+00:00 2026-05-23T15:49:34+00:00

I am writing a command-line Ruby gem for CraftBukkit (of Minecraft fame). So, CraftBukkit’s

  • 0

I am writing a command-line Ruby gem for CraftBukkit (of Minecraft fame).

So, CraftBukkit’s .jar file functions as any command-line server interface should: it accepts user input and sends it to the server when the admin presses enter, while displaying a live feed of server events.

Executed in the command-line directly, then,

java -Xmx1024M -Xms1024M -jar craftbukkit.jar

functions perfectly. I need to execute that same command within my Ruby gem and accept user input in the same way. I am currently using %x{} like so:

%x{java -Xmx1024M -Xms1024M -jar craftbukkit.jar}

This functions reasonably well, as it displays output as it should and executes commands typed into the command line window. It does not, however, show user input as it is typed.

I need to fix this. What Ruby commands/frameworks can I use to make the java command function perfectly?

If possible, I would also like to be able to parse the output.

I am using Clamp to parse command line arguments, if that matters.

  • 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-23T15:49:34+00:00Added an answer on May 23, 2026 at 3:49 pm

    Does

    system "java -Xmx1024M -Xms1024M -jar craftbukkit.jar"
    

    do what you wanted? It should at least display the input and output. Or did you want to parse the output from within Ruby?

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

Sidebar

Related Questions

I'm writing a ruby gem , which has a command line interface ( making
I am writing a Ruby CLI (Command Line Interface) program and I would like
I'm writing a command-line development utility for my team, using Ruby. I'm trying to
I'm writing a simple ruby sandbox command-line utility to copy and unzip directories from
I am writing a PHP command line script, and I'm wondering if any grep
I'm writing a small Ruby command-line application that uses fileutils from the standard library
I'm writing some experiments with ruby accessing wordnet through the wn command line tool
Writing a rather simple command line tool in ruby I need to report meaningful
I'm writing some Ruby scripts to wrap AWS ELB command line calls, mostly so
So I'm tasked with writing a command line app that tells you the file

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.