I set up an HP3000 to get and receive files from a network using FTP/XL
File Transfer. There was an EDI system (Gentran) on the NT sniffing for
the presence of a "Flag" file. When it saw the file it would initiate a
receive session. The HP would launch a second job ten minutes after the
first that FTP'ed the Flag File to Gentran. After Gentran finished, the
first Flag File was renamed to a second flag file. The second HP job
would "sniff" for the second flag file (by capturing an "ls -l"
listing). It not present it would re-stream itself ten minutes later. If
found it would capture an "ls -l" listing of generated files. Then it
would perform an MPEX script looping through each captured file entry.
The script would (1) Lookup the File Name in a Name Archive, (2) skip if
found else write the entry to the Name Archive and write an FTP command
to a script file it was dynamically creating, and (3) after finishing
the loop, execute the built script file that would upload the files to
consecutively numbered MPE file names.