diff --git a/bin/joblint.js b/bin/joblint.js
index <HASH>..<HASH> 100755
--- a/bin/joblint.js
+++ b/bin/joblint.js
@@ -62,7 +62,11 @@ function runCommandOnFile (fileName) {
 }
 
 function runCommandOnStdIn () {
-    captureStdIn(handleInputSuccess);
+    if (isTty(process.stdin)) {
+        handleInputFailure('Input stream not detected');
+    } else {
+        captureStdIn(handleInputSuccess);
+    }
 }
 
 function handleInputFailure (msg) {
@@ -85,3 +89,7 @@ function captureStdIn (done) {
         done(data);
     });
 }
+
+function isTty (stream) {
+    return true === stream.isTTY;
+}
Detect possible empty input stream

Using `process.stdin.isTTY`, detect whether streaming input is even
possible. If the process is a TTY, then nothing has been piped into the
command. If the process is not a TTY, then it is *possible*, but not
definite, that input is being streamed.