Hi,
I have a question that maybe someone can help me with. I am writing/creating a file on a unix server, and I check to see if the file exists before I create it. If it does create a new file, I want to send the previous file via e-mail to a specific person.
I currently have it working for the previous day, I use the date for the filename. But, what if the day before is not the previous file? I want to code something that will either, check the date on the file, or find the previous file, whether it be the day before, i.e. 051104.txt to 051204.txt or some day distant, i.e. 050804.txt to 051204.txt.
I hope I am explaining myself correctly, feel free to ask as many questions you can if i have explained myself well enough.
Joseph A. Ruffino
Automated Systems Assistant
Gail Borden Public Library District
270 N. Grove Ave
Elgin, Il, 60120
847-742-2411 x 5986
jruffino@nsls.info
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.