raylu 7 years ago
parent
commit
cfff18cf74
1 changed files with 9 additions and 0 deletions
  1. 9 0
      yes

+ 9 - 0
yes

@@ -0,0 +1,9 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+if sys.stdout.isatty():
+	sys.exit('stdout is a tty - not running /usr/bin/yes')
+
+os.execvp('/usr/bin/yes', sys.argv)