Previous Topic: Session 0Next Topic: File Watcher Job Fails When the Watch File is a Variable


Additional Parameters

Depending on your environment, you may also require the following parameters to use Session 0.

oscomponent.su.newconsole

(Optional) Sets whether to force the agent to create a console when running a Windows job.

true

Creates a console when running a Windows job.

false

Does not create a console when running a Windows job.

Default: false

oscomponent.cmdprefix.force.redir.inline

(Optional) Sets whether the agent forces inline redirection. In some cases, such as Windows Server 2008 R2, inline redirection is required for the console to be displayed in Session 0.

true

Forces inline redirection using cmd.exe /c command args stdin_file >stdout_file >stderr_file.

false

Does not force inline redirection.

Default: false

Note: This parameter requires oscomponent.cmdprefix.force=true and affects FTP verbose mode. If regular redirection is used, the command
ftp –s:command_file will not output raw FTP commands with completion codes as per FTP protocol.

oscomponent.cmdprefix.force.redir.ifstdon

(Optional) Sets whether to prevent the agent from redirecting STDOUT/STDERR if none are specified in the job definition.

true

Prevents the agent from redirecting STDOUT/STDERR if none are specified in the job definition. If the output of the command requires user input, such as pause, it is displayed in the cmd.exe console window.

false

Does not prevent the agent from redirecting STDOUT/STDERR if none are specified in the job definition.

Default: false

Note: This parameter requires oscomponent.cmdprefix.force=true and the Windows job has to be interactive.

Note: If you are not logged in when the job is submitted, you might need to restart the "Interactive Services Detection" service to receive the prompt.

More information:

Configure the Agent for Windows Interactive Jobs