Hourly ftp

  • Creator
    Topic
  • #51391
    herm ernst
    Participant

    I am currently to building a file of ADT messages each hour using a tcl proc in TPS outbound data as follows:

    run {

        set date [clock format [clock seconds] -format “%Y%m%d%H”]

        set new_name “”

        append new_name $name $date $suffix

        msgmetaset $mh DRIVERCTL “{FILESET {{OBFILE $new_name}}}”

      ….  

     

    When the hour is up I’d like to then ftp the file to a directory outside of Cloverleaf and copy it to an archive directory. What is the best way to do this?  Anybody have examples? Can I ftp and copy file to archive using this same tcl proc?

Viewing 1 reply thread
  • Author
    Replies
    • #70079
      Russ Ross
      Participant

      I posted how we’ve been batching up real-time numfiles for FTP on a scheduled basis on the second page of this URL:

      <a href="http://clovertech.infor.com/viewtopic.php?p=7043#7043&#8243; class=”bbcode_url”>http://clovertech.infor.com/viewtopic.php?p=7043#7043

      Much of the solution uses standalone scripts to complement cloverleaf because at that time in the year 2000 I was not fully capable in cloverleaf.

      The main script of interest you are asking about is called

      batch_num_file.tcl

      It has wokred well so no motivation to change it plus it hasn’t ever been impcted by a cloverleaf upgrade.

      Russ Ross
      RussRoss318@gmail.com

    • #70080
      Sergey Sevastyanov
      Participant

      You probably can set a fileset-ftp thread that will be invoked every hour using advanced scheduling.

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

Forum Statistics

Registered Users
5,125
Forums
28
Topics
9,294
Replies
34,439
Topic Tags
287
Empty Topic Tags
10