Job actions are triggered when Reflection Gateway detects new or updated files in a scanned directory. Use this procedure to invoke a command action. You can configure commands that run once or specify a command to act on each file that met the scan conditions.
NOTE:The command runs as a remote SSH command executed using the user account specified for . The executable file and output locations must be available to this user. The working directory is the SSH terminal login directory for that user.
on theTo configure a Job action that executes a command
On the
(or ) page, under , from the list, select .This opens the
dialog box.For
, select one of the following:executes the command a single time.
executes the command for each file that has been added or updated since the last scan.
For
, select the SFTP server on which this command will run.For Sample Commands for Job Actions below for examples.
, specify the command to run and any arguments you want to pass to this command. SeeThe command runs as a remote SSH command executed using the user account specified for
on the SFTP server setup page. The executable file and output locations must be available to this user. The working directory is the user’s home directory.On Windows servers, precede DOS commands with cmd /c, for example:
cmd /c echo $FILENAME$ >> c:\output\filelist.txt
If you include full path information for output, as shown in the example above, the directories in the specified path must exist, and the user who is specified for
in the file server definition must have access to these directories.If you do not include full path information for command output, it is created in the terminal session login directory for the user who is specified for home/userID). On the Reflection for Secure IT Server for Windows, this is the user’s Windows Profile directory by default (c:\users\userID). This default can be modified from the Reflection for Secure IT Server console using the Permissions pane.
in the file server definition. On UNIX systems this is typically the home directory (Click
to close the dialog box.Click
.Click
to test the Job. (If this is a repeat test, first update the files in the source location.)