Brian, Let me clarify my process. My office is the hub that process data from school districts. A school district uploads its file using WS_FTP to my server on their specific location. For example if the school district Fox sends me a form the zip their file log on to WS_FTP and upload their file to the directory Districts, then to their Directory Fox, then to their folder Inbasket. It is on this file that I want to run my Perl script. I want to at 11:00 p.m. each evening run this script on this folder to see if the system date matches the date it was uploaded on WS_FTP. If it was I then have to look into an array that stores passwords. I then obtain the correct password for that district and unzip the file. The files are zipped with a password protection. That file has now been successfully unzipped and now I need to re-zip that file without a password to the archive folder, which is located in the same directory as the Inbasket, and re-name the file to include the suffix _IN on what I call the fifth node of the name. Then the process is done for that district. I have a few districts therefore the use of the if-else chains will be needed to loop through and make sure all files are done. Thank you for your help and I hope this can help to clarify my need. Any information you can give I would appreciate it. JRC1982 <JRC1982@aol.com>

In reply to Re^2: Moving Files in Perl by Anonymous Monk
in thread Moving Files in Perl by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.