Reply To: Fileset FTP Question

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Fileset FTP Question Reply To: Fileset FTP Question

#56896
Joe Halbrook
Participant

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10