Standard Output/Error For Loop Script

From Debian Clusters
Jump to: navigation, search

This small script is used as a submission for the Torque and Maui sanity check.

Standard Error vs. Standard Output Script

#!/bin/bash

for x in `seq 1 10`
do
  if [ "$x" -lt 5 ]; then
    echo $x is less than 5
  else
    echo "$x is greater than or equal to 5" >&2
  fi
done
Personal tools
Namespaces
Variants
Actions
About
services
node images
clustering
web monitoring
Toolbox