Running standalone Python scripts in GS Console

You can use the GS Console module (GSConsole.exe) to run a standalone Python script in a Windows Scheduled Task.

It can use the same command line parameters as PC Collect. Most commonly-used command line parameters for GS Console are those to automatically log in to GainSeeker and those to specify a Python script. The GainSeeker user must have permission for Module Access to PC Collect.

Display

If you use the Python  print  command, the information you print will be displayed. Otherwise, the script will run silently in the GS Console window.

Errors

Any Python commands that would display a user interface will return an error code in the Windows Event log. Application errors for GS Console will also be written to the Windows Event log.

To manage long-running scripts

For situations where a script is constantly running - such as polling a data source for new information every few minutes - you can use the GS Console Manager module to launch and/or monitor the progress of such scripts.