minccomplete1
Checks if a minc file is complete
Usage
minccomplete [options]
<file.mnc>
Overview
minccomplete will check if a file exists and is completely written. The reasons for non-completion are varied but typically caused when a process writing a MINC or xfm file is interrupted. A zero will be returned if the file is complete and a -1 if it isn't.
Examples:
$ minccomplete in.mnc0$ minccomplete in.xfm0
A MINC file is returned as complete if the image attribute image:complete is set. ie:
mincinfo -attvalue image:complete infile.mnc
A xfm file is deemed complete if xfm2param can parse the file. The associated exit codes will also be set as part of this so that minccomplete can be used in scripts.
An entirely simplistic example:
#! /bin/shinfile=$1if [ `minccomplete ${infile}` ]thenecho "Yes!"elseecho "Nope, try again"fi
Problems or comments should be sent to: [email protected]
Options
-
-v, --verbose -
Be noisy when doing things
-
--version -
Print version number and exit
-
-h, --help -
Dump some quick help output
-
--man -
Dump a man page
-
-e, --error_string -
Don't die on errors (eg: file not found) and print the supplied value instead
Copyrights
Copyright 2000 by Andrew L Janke
Releases
3 releases since Debian 6.0 (Squeeze); the text changed 2 times.