Jump to content
Sign in to follow this  

Java with StdOut

Recommended Posts


Ok so im creating a script to help handling a java gameserver easier. My goal is to read from the server using StdOut and then react to it with StdIn. The only problem is that the data doesnt come through StdOut but it comes in the log of the autoit script. Is there any way to fix this?

this is my scipt:

#include <Constants.au3>

Local $foo = Run("run.bat", @ScriptDir, @SW_SHOW, $STDIN_CHILD + $STDOUT_CHILD)

Local $data

Global $LogArray[1]

While True

$data &= StdoutRead($foo)

If @error Then ExitLoop


If Not $data = "" Then

MsgBox(1, "", $data)



the log ends up like this

23:46:06 [iNFO] Starting minecraft server version Beta 1.7.3

23:46:06 [iNFO] Loading properties

23:46:06 [iNFO] Starting Minecraft server on *:25564


23:46:06 [WARNING] The server will make no attempt to authenticate usernames. Beware.

23:46:06 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.

23:46:06 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.

23:46:06 [iNFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)

23:46:06 [iNFO] Preparing level "world"

23:46:06 [iNFO] Preparing start region for level 0 (Seed: -6733772595596755480)

23:46:07 [iNFO] Preparing start region for level 1 (Seed: -6733772595596755480)

23:46:07 [iNFO] Preparing spawn area: 8%

23:46:08 [iNFO] Server permissions file permissions.yml is empty, ignoring it

23:46:08 [iNFO] Done (0,179s)! For help, type "help" or "?"

Share this post

Link to post
Share on other sites

I would say "welcome to the forum" ...

However, you have started by breaking forum rules - no game discussion is allowed here.

Read the rules and "sin no more".

Friendly advice: don't try to argue against the rules or try to explain that your case does not apply. This kind of things end often bad.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post

Link to post
Share on other sites

The fact that you are using a game server is tangential to the real problem and was useless information that has resulted in your thread being locked due to rules violation. In the future think about your question more and don't provide irrelevant information.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.