keecode logokeecode
68

No Host

Host name unknown

Application

Exit Code Information

Exit Code

68

Name

No Host

Category

Application

Usage Context

Host specified did not exist

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "No Host"
  exit 68
fi

Check Exit Code

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

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

Node.js/JavaScript

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

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

Python

import sys

# Exit with code 68
if error:
    print("No Host")
    sys.exit(68)