Hi Rick,
LOL, yes, we sometimes get code from who knows where, and if it works we just forget about it and go on!
Well, your command script is Ok.
The "-O -" part says, send the results, or output, to stdout (standard output: the console or screen), instead of to a file (e.g. -O somefilename).
The "> /dev/null" part at the end catches whatever is being sent to stdout and then redirects it to the null device (a black hole )
Finally, the "2>&1" part redirects stderr (standard error, or the error stream) to stdout, but as stdout is already redirected to the null dev, then the error stream gets discarded too.
Character ">" means start with a new file (output) and ">>" means append to the existing file.
The numbers, 0, 1 and 2 are file descriptors that mean:
0 = stdin
1 = stdout
2 = stderr