mirror of
https://github.com/opus-tango/minecraft-server-discord-bot.git
synced 2026-03-20 03:55:20 +00:00
switch to tee to see ouput on screen
This commit is contained in:
2
bot.py
2
bot.py
@@ -362,7 +362,7 @@ async def startserver(ctx, *args):
|
|||||||
|
|
||||||
screen_cmd = (
|
screen_cmd = (
|
||||||
f"cd {path} && "
|
f"cd {path} && "
|
||||||
f"screen -dmS {servername} bash -c \"{server['startcommand']} > {pipe_path}\""
|
f"screen -dmS {servername} bash -c \"{server['startcommand']} | tee {pipe_path}\""
|
||||||
)
|
)
|
||||||
|
|
||||||
#command = f"cd {path} && screen -dmS {servername} {server['startcommand']}"
|
#command = f"cd {path} && screen -dmS {servername} {server['startcommand']}"
|
||||||
|
|||||||
Reference in New Issue
Block a user