FTP’ing a rolling number file

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf FTP’ing a rolling number file

  • Creator
    Topic
  • #49816
    Scott Jones
    Participant

    Hello All,

    I’m in need of help in ftp’ing a file. Currently, the ftp script will go to the directory that I want but here is where I need help. The file name has an incrementing number combined with alpha characters.

    For example todays file is abc_d12345.dat and tomorrows file is abc_d12346.dat. In addition the directory does not remove previous days files.

    What I was interested in doing is getting the largest numberd file and by possibly using string range strip the alpha characters, compare the numbers to the previous days saved variable, verify that it is larger and then process it through the engine.

    I’m thinking that one way to invoke tcl within my script to use string range is by using Tcl_CreatePipline. I am having trouble understanding how it works.

    Messages are in HL7 format

    Currently ftp’ing to Unix box but that changes to AIX on Feb 20th.

    I would be very open to other possible solutions and if you need other infomation please let me know.

    Thanks in advance for all your help.

    Scott

  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

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