option has the highest priority
if [ "$dflag" = "false" ]
then
	# then check the environment
	if [ "$ASETDIR" -ne "" ]
	then
		asetdir=$ASETDIR
	else
		# otherwise set to the default value
		asetdir=/usr/aset
	fi
fi

if test ! -d $asetdir
then
	echo
	echo "ASET startup unsuccessful:"
	echo "Working directory $asetdir missing"
	exit 2
fi

# expand the working directory to the full path
asetdir=`$asetdir/util/realpath $asetdir`
if [ "$asetdir" = "" ]
then
	echo
	echo "ASET startup unsuccessful:"
	echo "Cannot expand $asetdir to full pathname."
	exit 2
fi

eval `grep "^TASKS" ${asetdir}/asetenv`

if [ "$TASKS" = "" ]
then
   echo
   echo "Task list undefined. Check ${asetdir}/asetenv file."
   exit 1
fi

if [ ! -h ${asetdir}/reports/latest ]
then
	echo
	echo "The reports directory under $asetdir is not well established."
	echo "taskstat failed."
	exit 1
fi

if [ ! -s ${asetdir}/reports/latest/taskstatus ]
then
	echo
	echo "Cannot find task status file."
	exit 1
fi

echo
echo "Checking ASET tasks status ... "

done=""
notdone=""

for task in $TASKS
do
	if grep -s $task ${asetdir}/reports/latest/taskstatus
	then
		done="$done $task"
	else
		notdone="$notdone $task"
	fi
done

if [ "$done" != "" ]
then
	echo
	echo "The following tasks are done:"
	for task in $done
	do
		echo "	$task"
	done
fi

if [ "$notdone" != "" ]
then
	echo
	echo "The following tasks are not done:"
	for task in $notdone
	do
		echo "	$task"
	done
else
	echo
	echo "All tasks have completed."
fi
                                                       aset/util/nls                                                                                       0100700 0000000 0000002 00000041650 07155651312 0013313 0                                                                                                    ustar 00root                            bin                             0000040 0000016                                                                                                                                                                        ELF                  4  ?     4    (        4  4                                                             :'  :'           :( :(        t           :, :,                  /usr/lib/ld.so.1       S   b   C   N   &   :   ^   _                   1   A   I       [   \   a       7       0   -       L   M              V               H   K   ?   $              W                           S   ,               2   Z   G       =       /       U           6   +   D   >   T           X       4       B   ]              J       `   Y                                                                                                                                                             "       %                                              .   !                                   ;   #   3               '   5   @           )               *       E       F       P       <      Q      R   O           8   (       9                                                            	           l                                                  	     8      
     8           9           9           9            :(           :,           :           =,           =L           >           >                                      ;H                	    ;           ;`           <          $ =L        - <          4 F         9 ;          @ EX  @!     E               R ;          [ :(         q A  	     y C  t     ~ :           ;            <            ;x           <           <           <h           ;           8   8  
    ;$           <           ;0           <\           <           ;           =p         ;T           <D           <8          :,         ;          EX  @     ;         # ;l         ) <         1 =         8 ;         >              M =L   !    U ;         \ =l       h <         q =l       } =          =l        ;          F        <          ;          <          >         :                    <P          :'         9        <t          A  	!     <,            	t  	  ! <         * =         2 ;         7 =P       F <         N 8   8    T <         \ ;         d ;<        getopt _start calloc atoi getpwuid _environ stat64 _end strdup _iob _ex_register __flsbuf _GLOBAL_OFFSET_TABLE_ __ctype utmp atexit exit __minor malloc sprintf acl opendir gettext _init textdomain .mul time .rem readdir64 qsort ___Argv getenv strncpy cftime _DYNAMIC printf __iob setlocale ioctl realloc mbtowc _exit _ex_deregister environ perror __cg89_used getgrgid __cg92_used fputwc __fnonstd_used free optind closedir strcmp __major _edata _PROCEDURE_LINKAGE_TABLE_ __fsr_init_value strcpy _etext _lib_version fflush _ctype dcgettext main readlink wcwidth .div __environ_lock lstat64 _fini strcoll fprintf isatty libc.so.1 SUNW_1.1 libc.so.1     k       
='      u     =0  B     =,  "     EX  <     F  K     A  %     :  '     ;   (     ;  A     ;  =     ;$  0     ;0  2     ;<  a     ;H       ;T  7     ;`       ;l  >     ;x  *     ;  5     ;  J     ;  .     ;  `     ;  D     ;  M     ;       ;        ;  ;     ;  #     ;  [     <  1     <  N     <   )     <,  W     <8  9     <D  8     <P  R     <\  3     <h  -     <t  U     <  4     <  L     <       <  ]     <  ?     <  Y     <  ,     <       <  +     <  F     <  _     =  @     =  Z     =  H      @D  "ap, @'  $L+   `      -` `?-)  !h-    /%    +   ` `?`5    +  al %@ #    @ J     N@ Jϐ @ 
:       @  N   @ J   @ J                                 8    l                      $            T                                  x        (                      D    T  l      㿠!  N! @ J !  N@ J!$@ J  ! ;S" #  " $aT < #  @ Jy$aP!   !!  !!  !!  !!  !x!      !`   #  '  ;  9  7  !  N$`!4$ax 'a '!5  &@ JY& ᴖ a 	` ! 
? ax$ 1  C#G޵.ƀ     !p`"!p  !h`"!h  !`"!  !`"! Ä          "a|     !`"!  `    "!|  `!`"!  `!`"!?  "a  !`"!     `  !`"!  !t`"!t   "a  }"!   "a  w"!  !`r"!  !`l"!  !`g"!  !l`b"!l`   q!  N  !       !  `"!    "!  "!  !      !t        !     `!    `      	  a    "a "  
    a     "a"        ;1  1  !  N!$`$ax'a'!&!D&@ Iy&  !  @ Iw!  $!!D!aax ` h!  !2@ Il ?  !D!aax 	`!4 	    P  "!  a    1   P"a1  $ax#  $aD#  !$a, $`!  'a'!&@ IF&  $!!, @@ I>, !    $!  "  a   * &@5     2   F  !x   !   1  !  ", @ G@!  !H@&  $!H1  "* @J`        	!@      !@      "a" &""* @J`       " !"  "" &"  !|`"!|!  #  !D%  LaH