switch to tee to see ouput on screen

This commit is contained in:
Nayan
2025-08-25 22:46:30 -04:00
parent 6e721a5e8e
commit c6123df4df

2
bot.py
View File

@@ -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']}"