我想用.sh脚本把命令发送到屏幕上。使用以下命令启动CSGO服务器:screen -S cs ./srcds_run -game csgo -usercon如何向csgo服务器发送命令,如:sv_cheats 1
发布于 2015-08-08 08:25:43
从screen手册页:
-X将指定的命令发送到正在运行的screen会话。
在https://unix.stackexchange.com/questions/13953/sending-text-input-to-a-detached-screen,你会发现类似的问题。
因此,对于您的特定问题,解决方案是:
screen -S cs -X stuff "sv_scheats 1"https://stackoverflow.com/questions/31885800
复制相似问题