Browse Source

aforementioned cool stuff, console.sh lets us run commands and see the output 1 second later possibly bad for long commands

pull/1/head
thehuntedpie 7 years ago
parent
commit
84643506b6
  1. 8
      console.sh

8
console.sh

@ -0,0 +1,8 @@
#!/bin/bash -x
COMMAND=${@};
CONTAINER=mindustry_server;
DATE=`date -Iseconds`;
echo "$COMMAND" | docker attach $CONTAINER &
sleep 1;
docker logs --since "$DATE" $CONTAINER
Loading…
Cancel
Save