door_2023.sh 357 B

12345678910111213141516171819
  1. #!/bin/bash
  2. trap failwhale SIGINT
  3. failwhale() {
  4. echo "FAIL WHALE"
  5. exit
  6. }
  7. # pipexec -k (kills other processes if one dies)
  8. # ^ This fixes problem when you hangup on netcat (MEOOOW)
  9. while true
  10. do
  11. pipexec -k -- [ NETCAT /bin/netcat -l 2023 ] [ DOOR build/space-ace -D DOOR.SYS ] "{NETCAT:1>DOOR:0}" "{DOOR:1>NETCAT:0}"
  12. echo "Let's do it again!"
  13. done