Custom job data actions

In some cases, you might want to post-process the data users view through IBM Spectrum LSF Application Center. Make new job data actions available to users with a custom menu item in the job details page. You can choose an existing command or create a script. The script or command will be executed whenever a user chooses the new job data action from the menu. Job data actions can be triggered on specific file types, applications, and on multiple files at the same time.

The job data action script needs to follow standard conventions. For example:

  • Return code of 0 for success, and non-zero for error
  • Use stderr output for error messages, and stdout output for other messages (errors and messages from the job data action script display on the page in IBM Spectrum LSF Application Center as usual)

When IBM Spectrum LSF Application Center invokes the job data action script or command, it passes the file names as arguments. For example, if the file is myfile.txt and the job action is dos2unix:

<Command type="CLI">dos2unix</Command>

then IBM Spectrum LSF Application Center invokes the command:

dos2unix myfile.txt