ELBRUS: COMMUNICATION WITH OTHER PROGRAMS.

( 3 ) EXECUTING ELBRUS WITH COMMAND LINE ARGUMENTS




The command line arguments:

Elbrus supports the following command line arguments:
-- argMode 0....8
-- argImagePath mandatory for argMode = 8
-- argSupposedAR (optional) for argMode = 8 only
-- argSupposedDEC (optional) for argMode = 8 only
The arguments must be separed by spaces.

Examples:
c:\elbrus\elbrus.exe 0 ( executes elbrus in the 'A- image path' mode)

c:\elbrus\elbrus.exe 5 ( executes elbrus in the 'E- wait for message' mode )

c:\elbrus\elbrus.exe 8 c:\myImages\mm123.fit 320.25 -86

Mode 8 executes Elbrus and solves the image argImagePath. Then exits the program.
If argSupposedAR and argSupposedDEC are present then they are used during the sky search.

Mode code values:
-- mode = 0: manual mode. Selected image path.
-- mode = 1: manual mode. Image from the last message in the 'images' folder.
-- mode = 2: manual mode. Most recent image in the 'images' folder.
-- mode = 3: not used.
-- mode = 4: not used.
-- mode = 5: automatic mode. Wait for message.
-- mode = 6: automatic mode. Wait for image.
-- mode = 7: not used.
-- mode = 8: execute then solve then terminate.

Executing Elbrus from the Windows-MS-DOS :
You can use the MS-DOS windows to launch the program with command line arguments.

Executing Elbrus from the Run windows:
You can use the Run window to launch the program with command line arguments.

Executing Elbrus from a VBscript file :
You can execute Elbrus from a VBS script file. The example bellow executes Elbrus, analyzes the image c:\Ima\p84g20mL1.fit and then closes Elbrus.
See the next page for more about using vbs script files.



You can go to the next page:
(4) Executing Elbrus from VB script files

You can go back to:
(2) Receiving the status file

(Updated December, 2008 Alfonso Pulido)