I normally do it this way: if (length($remaining) == 0) { &do_exit; } Per Hi Below if $remaining is empty i want the if to finish - what is it i need to put in SOMETHING? if [ "$remaining" = "" ] ; then SOMETHING ; else kill -9 $remaining fi _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos