# jSPOOL Script and Scheduled Task

Updated: 10/23/2020, 1:48:27 PM
Created: 10/23/2020, 1:48:27 PM
Last Updated By: Mike Street
Read Time: 1 minute(s)

Script to restart the jBASE Spooler on Windows:

@echo off
set JBCRELEASEDIR=C:\jbase55
set JBCGLOBALDIR=%JBCRELEASEDIR%
set PATH=%JBCRELEASEDIR%\bin;%PATH%
set JBCSPOOLERDIR=D:\jbase\jspooler
set JBCPORTNO=500-999
set JBC_DESPOOLSLEEP=10
%JBCRELEASEDIR%\bin\rest-spooler.exe >nul 2>&1
1
2
3
4
5
6
7
8

# Configuration of the Scheduled Task

Everything must be just right in order for this to work correctly. It may be necessart to un-check some of the defaults that Windows provides.

Step#1

# Add/Edit a new task

Step#2

# Define the Trigger

Step#3

# Define the Action

Step#4

# Provide details of the action to be performed

Step#5

# Define the conditions

Step#6

# Define any specific settings

Step#7

# Add User credentials for the Task

Step#8

# Note

It is also possible to start a phantom process in much the same way
Define the environment that the process needs; essentially:

JBCRELEASEDIR
HOME
JBCEMULATE
PATH
JBCOBJECTIST
JEDIFILEPATH
1
2
3
4
5
6

and then run the PROC using the jBASE 'jpq' command, i.e.

jpq MD\<procname>
1

Note procs are not directly executable so they need to be invoked using the 'jpq' PROC processor.

Back to FAQ