VISITview Windows Server setup

07/08/2002
updated: 04/22/2003

Starting the VISITview server

To start the VISITview server, change to the directory where you installed the VISITview software, and enter the command:
       java -cp .\ ViewServer
If you want to keep the logging information, then re-direct the output into a file. For example:
       java -cp .\ ViewServer >serve.txt 2>&1
Note: if you're using Java version 1.0 or 1.1, the java command should be replaced by the jre command.

Automatically starting the VISITview server

On Windows 2000/XP, do the following steps to set up the Windows Scheduler to automatically start the VISITview server:
  1. In the 'visitpack' directory, create a new batch file: visitserver.bat that contains just one line:
    .\jre\bin\java -cp .\ ViewServer 1631 >server.txt 2>&1
    

    This will put the text output (log) of the server into the named file ("server.txt"). If you want to see it in the window instead, simply omit the clause: >server.txt 2>&1

  2. From the "start" button: Start -> Settings -> Control Panel -> Scheduled Tasks
  3. Click on "Add Scheduled Task" and the Wizard comes up. If the Wizard does not appear (likely because you've done this before), just right-click on the task, and then select Properties. (The following seven steps apply to the Wizard, but in the Properties dialog, you will be typing and choosing).
  4. Click "Next > and you will be presented with a list of tasks
  5. Click 'Browse' and find your 'visitserver.bat' file and pick it.
  6. In the next window, type a name for your task, and then select "Daily"

    NOTE: You may, alternatively, pick "When Idle". This setting will start the server regardless of who is logged on, but does require that the machine be idle for the specified amount of time (use 1 minute). "Idle" means no keyboard or mouse input.

  7. Click "Next >
  8. Type in the user name and password info for your account

    If you are using the Wizard, the next windows should say "You have successfully scheduled...."

  9. Check the box "Open advanced properties for this task when I click Finish"
  10. Click "Finish"
  11. In the "Properties" dialog for this task, click the "Schedule" tab
  12. Click on "Advanced"
  13. In the Advanced Schedule Options, check the "Repeat task" box and put in '2' for the "Every..." option (see note above about using the 'when idle' option -- if you picked this, then click the "idle time" checkbox, and then choose one minute).
  14. Change the "Duration" to a very large value (I use 9000 hours). Be sure the "If task is still running..." box is UN-checked!
  15. Click OK
  16. Back in the Properties window, select the "Settings" tab
  17. Un-check the "Stop the task if it runs for..." (and anything else you want to)
  18. Click OK
When it runs the first time (in a couple of minutes) the DOS window will pop-up. Just minimize it. If you want to be able to see the Server status/log output in this windows, change the visitserver.bat file to not redirect output to a file, as mentioned above.


Return to VISITview home page.