summaryrefslogtreecommitdiff
path: root/migdon
diff options
context:
space:
mode:
Diffstat (limited to 'migdon')
-rwxr-xr-xmigdon/bash_migdeon.sh17
-rwxr-xr-xmigdon/migdon.py28
-rw-r--r--migdon/migdon_wrapper.sh2
3 files changed, 0 insertions, 47 deletions
diff --git a/migdon/bash_migdeon.sh b/migdon/bash_migdeon.sh
deleted file mode 100755
index 95bd7ca..0000000
--- a/migdon/bash_migdeon.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-PPID=`ps -o ppid -p $$`
-
-echo parent PID $PPID
-
-PTTY=`ps -p $PPID -o tty --no-headers`
-
-echo parent TTY $PTTY
-
-while IFS= read -r line; do
- echo "read one line";
-done
-
-while IFS= read -r line; do
- echo "read one line 2";
-done < /dev/$PTTY
diff --git a/migdon/migdon.py b/migdon/migdon.py
deleted file mode 100755
index 3e03193..0000000
--- a/migdon/migdon.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env python
-
-import fileinput
-import os
-import sys
-import shlex
-import subprocess
-import re
-
-colourFormat = '\033[{0}m'
-colourStr = colourFormat.format(32)
-resetStr = colourFormat.format(0)
-
-#while True:
-# try:
-# c = sys.stdin.buffer.read(1)
-# except EOFError:
-# print("EOF")
-# break;
-# print(c)
-# sys.stdout.buffer.write(c)
-
-for line in fileinput.input():
-# print re.sub(r'([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})', colourStr+ r'\1' + resetStr, line),
- ips=re.findall(r'([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})', line)
- for ip in ips:
- print "ipv4 detected: "+colourStr+ip+resetStr
-
diff --git a/migdon/migdon_wrapper.sh b/migdon/migdon_wrapper.sh
deleted file mode 100644
index 8f79f06..0000000
--- a/migdon/migdon_wrapper.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-TTY=$(tty)
-bash | ./migdon.py > $TTY