Running standalone Python scripts in GSConsole

You can use the GSConsole 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 GSConsole 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 GSConsole window.

Errors

Any Python commands that would display a user interface will return an error code in the Windows Event log. Application errors for GSConsole 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 GainSeeker Console Manager module to launch and/or monitor the progress of such scripts.