keecode logokeecode
73

Cannot Create

Cannot create output file

Application

Exit Code Information

Exit Code

73

Name

Cannot Create

Category

Application

Usage Context

Output file could not be created

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Cannot Create"
  exit 73
fi

Check Exit Code

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

# Check if exit code matches
if [ $? -eq 73 ]; then
  echo "Cannot Create"
fi

Node.js/JavaScript

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

// Or throw error that results in exit code
if (error) {
  console.error('Cannot Create');
  process.exit(73);
}

Python

import sys

# Exit with code 73
if error:
    print("Cannot Create")
    sys.exit(73)