#!/bin/bash exec 2>&1 which ncid 2>/dev/null >/dev/null if [ ! $? = 0 ] then sv down ncid fi