1 2 3 4 5 6 7 8 9
#!/bin/bash exec 2>&1 which ncidd 2>/dev/null >/dev/null if [ ! $? = 0 ] then sv down ncid fi