#!/bin/sh -f
# Usage: process.sh <file1> <file2> <file3> ...
# This script will use FBS_PROC_NO to choose which of the files
# to process.
# ...
my_number=$FBS_PROC_NO
my_file=${$my_number}
fbs msg "Processing $my_file"
process.exe $my_file
# ...
The EXEC field in the JDF file would have as it's arguments the names of the files to process and might look like this:
SECTION ProcessData
NUMPROC = 3
EXEC = bin/process.sh data_file_A data_file_B data_file_C
...