keecode logokeecode
66

No Input

Cannot open input

Application

Exit Code Information

Exit Code

66

Name

No Input

Category

Application

Usage Context

Input file did not exist or was not readable

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "No Input"
  exit 66
fi

Check Exit Code

./script.sh
echo $?  # Prints the exit code

# Check if exit code matches
if [ $? -eq 66 ]; then
  echo "No Input"
fi

Node.js/JavaScript

// Exit with code 66
process.exit(66);

// Or throw error that results in exit code
if (error) {
  console.error('No Input');
  process.exit(66);
}

Python

import sys

# Exit with code 66
if error:
    print("No Input")
    sys.exit(66)