Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

The JobScheduler creates Master and Agent create temporary files.  The The JobScheduler retrieves from the operation system the information where to store such files.

  • For Windows and Unix JobScheduler considers the setting of the environment variable %TMP% respectively $TMP for the location of temporary files.
  • For Windows the directory for temporary files is usually associated with the account:
    • User accounts are located below the %UserProfile% directory structure.
    • System accounts are usually located below the %WinDir% directory structure.
  • For Unix JobScheduler creates a subdirectory from it's account to store temporary files, e.g. in  Usually on Unix the directory is /tmp/jobscheduler_user/.On Windows the directory is the folder that is specified with the user environment variable %TMP%.

JobScheduler Master

You can set the folder for temporary files by adding the variable TMP to the JobScheduler environment, see How to add environment variables ?for all jobs. Consider that jobs will use the folder for temporary files as well.Example

Instructions for Unix

  • rename ./user_bin/jobscheduler_environment_variables.sh-example to ./user_bin/jobscheduler_environment_variables.sh
  • edit ./user_bin/jobscheduler_environment_variables.sh:


     

...



  • Code Block
    languagebash
    titleSample for Unix
      TMP=/path/to/tmp/folder
      export TMP
    
  • make sure that the JobScheduler account has read, write and execute permissions for /path/to/tmp/folder
  • restart the JobScheduler

Instructions for Windows

  • rename .\user_bin\jobscheduler_environment_variables.cmd-example to .\user_bin\jobscheduler_environment_variables.cmd
  • edit .\user_bin\jobscheduler_environment_variables.cmd:

    Code Block
    languagebash
    titleSample for Windows
      set SCHEDULER_START_PARAMS=%SCHEDULER_START_PARAMS% -env="TMP=\path\to\tmp\folder"
  • make sure that the JobScheduler Madster account has read, write and execute permissions for \path\to\tmp\folder
  • execute the following sequence of commands
    • .\bin\jobscheduler.cmd stop
    • .\bin\jobscheduler.cmd remove

    • .\bin\jobscheduler.cmd install
      • After installation optionally assign an account to the Windows service and modify the start type, e.g. to automated start.
    • .\bin\jobscheduler.cmd start_service

JobScheduler Agent

You can set the folder for temporary files by adding the variable TMP to the JobScheduler environment. Consider that jobs will use the folder for temporary files as well.

Instructions for Unix

  • rename ./bin/jobscheduler_agent_instance.sh-example to ./bin/jobscheduler_agent_port.sh where port is the numeric port that the Agent is listening for.
  • edit the JAVA_OPTIONS in ./bin/jobscheduler_agent_port.sh:

    Code Block
    languagebash
    titleSample for Unix
      JAVA_OPTIONS="-Djava.io.tmpdir=/path/to/tmp/folder"
    
  • make sure that the JobScheduler Agent account has read, write and execute permissions for /path/to/tmp/folder
  • execute the following sequence of commands for an Agent that is listening for port 4445:
    • ./bin/jobscheduler_agent_4445.sh stop
    • ./

    folderrestart the JobScheduler
    • bin/jobscheduler_agent_4445.sh start

Instructions for Windows

  • rename .\bin\jobscheduler_agent_instance.cmd-example to .\bin\jobscheduler_agent_port.cmd where port is the numeric port that the Agent is listening for
  • edit .\bin\jobscheduler_agent_port.cmd:

    Code Block
    languagebash
    titleSample for Windows
      JAVA_OPTIONS=-Djava.io.tmpdir=\path\to\tmp\folder
  • make sure that the JobScheduler Agent account has read, write and execute permissions for \path\to\tmp\folder
  • execute the following sequence of commands for an Agent that is listening for port 4445:
    • .\bin\jobscheduler_agent_4445.cmd stop
    • .\bin\jobscheduler_agent_4445.cmd start_service