William,
Not sure if this is what you’re looking for, but we have a fileset Local protocol that waits for a file to be dropped in, then uses a directory parse tps which calls a shell script to perform the actual FTP of the result file, i.e.
set scriptname [file join $HciSiteDir scripts script.sh]
…
catch {exec $scriptname } result
…
The shell script does this:
…
ftp -dnv << end_of_ftp
open 123.123.123.123
user ftp-user ftp-pswd
ascii
quote site na 1
quote rcmd CALL PGM(HSRMTCHGC) PARM(‘parm1’ ‘parm2’)
quit
end_of_ftp
…
Joe Halbrook