Redwood Documentation

Product Documentation

 

›Command Line Tools

RunMyJobsPlatform Agents

External Platforms

  • Connecting Redwood Server to External Platforms

Credentials

  • Storing Credentials
  • Credential Protocols

Platform Process Servers

  • On-site Platform Process Servers
  • Cloud Platform Agents
  • Using the Wizard to Create Process Servers
  • Configuring Platform Agents
  • Spool Host Agents
  • The Environment of Platform Agent OS Processes
  • Processing Platform Processes
  • Process Server Services
  • Configuring Agentless Process Servers
  • Automatically Updating Platform Agents
  • Enabling TLS
  • Creating Monitoring Checks
  • Configuring Load Balancing on Platform Agents
  • Platform Agent Registry Entries
  • Monitoring Servers with Platform Process Servers

UNIX Agents

  • UNIX Process Servers
  • UNIX Process Server Configuration Data
  • File Events on UNIX
  • Creating UNIX Process Servers (Advanced)
  • Choosing a User Switching Security Mode
  • Controlling Unix Platform Agents
  • Uninstalling Redwood Server Platform Agents from UNIX

Windows Agents

  • Creating a Microsoft Windows Process Server
  • File Events on Microsoft Windows Process Servers
  • Configuration of a Microsoft Windows Process Server
  • Managed Services
  • Configuring Platform Agents on Microsoft Windows
  • Automating Windows tasks that require a desktop window
  • Uninstalling Redwood Server from Microsoft Windows

Agent Definition Types

  • Using the BASH Definition Type
  • Using the KSH Definition Type
  • Using the CSH Definition Type
  • Using the Perl Definition Type
  • Using the Python Definition Type
  • Using the PowerShell Definition Type
  • Using the Visual Basic Script Definition Type
  • Using the CMD Definition Type
  • Using the R Process Definition Type
  • Using the DCL Definition Type
  • Using Platform Definition Types
  • Using the OS Native Definition Type
  • Microsoft Windows Definition Types
  • Using the SQLPLUS Definition Type
  • Using the FTP Definition Type
  • Using the Groovy Definition Type

Command Line Tools

  • Command Line System Tools
  • jtool
  • jcat
  • jdescription
  • jevent
  • jecho
  • jftp
  • JFTP Return Codes
  • jgetcredential
  • jgetfile
  • jgetpar
  • jjoin
  • jlink
  • jlog
  • jmail
  • jmessage
  • jmonitor
  • jputfile
  • jregister
  • jrfc
  • jscp
  • jtool screenshot
  • jscript
  • jsecret
  • jsleep
  • jsplit
  • api-tool.jar

OpenVMS Process Servers

  • Creating HP OpenVMS Process Servers
  • Installing the Platform Agent on HP OpenVMS
  • Configuring HP OpenVMS Process Servers
  • File Events on HP OpenVMS
  • HP OpenVMS Definition Types

AS/400 Connector

  • IBM AS/400 Connector Architecture
  • Setting up the IBM AS/400 Connector
  • Creating an IBM AS/400 Process Server
  • Files on AS/400 Raise Events
  • Using the AS/400 Definition Type
  • Redwood Server OS Support
  • IBM z/OS Definition Types
  • Using the JCL_FTP Definition Type
  • IBM z/OS System Tools

Reference

  • Balancing the Load
  • Credential Protocols
← jjoinjlog →

jlink, jtool link

A platform agent tool used to link files to jobs, so that they appear as output of the process in Redwood Server. You can then send these files via email, for example.

On operating systems that support them it can also be used to create symbolic and hard links. This is especially useful on Microsoft Windows, where the standard tools may be insufficient or missing.

Syntax

jlink [-h|-?|-help] [-l <loglevel>] [-f <logfile>] -j|-job-context [-[no]deletewithJob]
      [-charset <charset>] <file> [<shortname>]
ArgumentDescription
-h, -?, -helpShow the usage information and exit
-l <loglevel>Defaults to ${JCS_LOGLEVEL:-info}, set the logging level; defaults to environment variable ${JCS_LOGLEVEL} or info when the environment variable is not set.
-f <logfile>Defaults to ${JCS_LOGFILE:-stderr}, causes logging to be directed to file instead of stderr; defaults to environment variable ${JCS_LOGFILE} or stderr when the environment variable is not set.
-j, -job-contextRun the command in job-context
-[no]deletewithjobDetermines if the file should be deleted with the process, the no prefix leaves the file intact after process deletion and is the default.
-charset <charset>Explicitly set the characterset that the file is in
-hardCreate an OS hard link instead of a link file
-symCreate an OS symbolic link instead of a link file
-copyCopy <file> to <target>
-moveMove <file> to <target>
-rmRemove <file>
-rmdirRemove directory <file>
<file>The path to the file to attach to the process.
<shortname>The short name used in Redwood Server

Note that the file should not itself reside in the TMPDIR directory, as all files in that directory will be deleted when the process finishes.

See The Environment of Platform Processes for more information on the environment of process.

Notes on -hard and -sym

On UNIX these options are supported and equivalent to calling ln and ln -s. On Microsoft Windows they will check whether the OS supports the option, and log a warning if the OS is not recent enough. Hard links on Microsoft Windows are supported on NTFS file systems starting with Windows 2003. Symbolic links are supported on NTFS file systems starting with Windows 2008. Note that normal UAC privileges mean that normal users and administrators not running in elevated mode are unable to create symbolic links.

Example

note

To perform the tasks below, you need to have the address of a valid mail server from which you are allowed to send email.

  1. Create a process definition of type CMD with the below code, named CMD_LinkFile and leave all other process properties at their defaults.
  2. Create a chain definition named JC_LinkFileAndSend.
  3. Add a Step, and a chain process running CMD_LinkFile.
  4. Add a second step, and a chain process running System_MailSend with the below parameter values.
  5. Submit the chain and check your mail.

Source for CMD_LinkFile

note

You may change %windir%\setuplog.txt to an existing file on the file system, however, if you change setup.log, do not forget to adapt the below parameter.

rem Windows command process that attaches an external log file to a process with a short name
jlink -nodeletewithjob %windir%\setuplog.txt setup.log

Parameters for the process of the second step of the chain definition JC_LinkFileAndSend.

ParameterExpression
To<your email address>
SubjectExample file
TextAn example file sent to me by Redwood Server
Relative jobStep 1, Job 1
Job filentuser.ini
Server<your SMTP server>
From<your email address>
note

Please replace <your email address> and <your SMTP server> with your real settings, ask your network administrator if in doubt.

See Also

  • Command Line System Tools
← jjoinjlog →
  • Syntax
  • Notes on -hard and -sym
  • Example
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |