FTP File From Engine

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf FTP File From Engine

  • Creator
    Topic
  • #52947
    Greg Tataryn
    Participant

      We have an inbound thread that is taking in an HL7 message, then on the rout there is a TPS that parses the message an outputs certain data to a CSV file. That file then needs to be sent via FTP to another server. Right now there is a cron job running to handle the FTP but we’d like to move the FTP process to the engine to give us better control over alerts. Any suggestions?

      We are running CL 5.7 on HPUX.

      EDIT: Rather than using the existing rout, I am setting up a new one using a local fileset thread for the inbound and an FTP thread for the outbound. I need the output files to have the same names as when they are picked up but the outbound FTP keeps giving me an error about needing to have a default file name.

    Viewing 6 reply threads
    • Author
      Replies
      • #76029
        Jim Kosloskey
        Participant

          Greg,

          You will need a Tcl proc in teh Outbound TPS of the Outbound (FTP thread to specify the name you want. You still give the configurator a file name but the Tcl proc will override it.

          I have a proc that does that. If you want it as an example, let me know either by email or in a reply here.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

        • #76030
          Greg Tataryn
          Participant

            Jim Kosloskey wrote:

            Greg,

            You will need a Tcl proc in teh Outbound TPS of the Outbound (FTP thread to specify the name you want. You still give the configurator a file name but the Tcl proc will override it.

            I have a proc that does that. If you want it as an example, let me know either by email or in a reply here.

            Thanks Jim. Please send the proc to greg.tataryn@piedmont.org.

          • #76031
            Mark Carey
            Participant

              Jim, can you share this tcl with me as well or post here.

              carey.mark@mayo.edu

              thanks!

              Mark

            • #76032
              Russ Ross
              Participant

                Mark:

                I have posted in the past an example of the proc (tps_fileset_outbound) that Jim referenced as an approach, and here is the URL to see the proc source code and NetConfig screen shots:

                <a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=1663&#8243; class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1663

                In the Netconfig I give the filename a hardcoded name of “whatever” since it will get changed by the proc on the way out and this helps me know it is only a place holder for a file name.

                This example will illustrate how to change the file name on the way outbound but you will still be left with determining what you want to change the file name to.

                Russ Ross
                RussRoss318@gmail.com

              • #76033
                Charlie Bursell
                Participant

                  What’s wrong with using the example in the contrib directory?

                  $HCIROOT/contrib/fileset_numfile_out.tcl

                • #76034
                  Jim Kosloskey
                  Participant

                    Mark,

                    The proc I have is different than the one Russ referenced in that this one makes the outbound name the same as the inbound name which is what was originally requested.

                    Unfortunately I am not at a place where I can email those to you until perhaps next week – I hope that is not too late.

                    email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

                  • #76035
                    James Cobane
                    Participant

                      See this post on Clovertech for some insight:

                      https://usspvlclovertch2.infor.com/viewtopic.php?t=3655&start=0&postdays=0&postorder=asc&highlight=inbound+file+name

                      You can also search for some more on Clovertech; I simply put in “inbound file name” and chose to search for ALL terms.

                      Hope this helps.

                      Jim Cobane

                      Henry Ford Health

                  Viewing 6 reply threads
                  • The forum ‘Cloverleaf’ is closed to new topics and replies.