Sorting files by date created and creating an HTML list?

2003-03-31 Thread Scott, Deborah
I need to sort files according to the date they were created. Is there a way to do this for files stored on an NT machine? I have a script that reads files from a directory and then creates an HTML page listing the files. (Thanks to Dan Muey and Pete Emerson.) But one directory contains files wit

RE: How to look into every subdirectory

2003-03-05 Thread Scott, Deborah
I need to make an HTML page that lists all files and directories and then links to them. The following script, with a subroutine, looks like what I need. I should just need to add some html tags to the Print statements. Does that sound right to you all? Or do you have better suggestions? (I'm a r

How to display dir contents on web page?

2003-02-19 Thread Scott, Deborah
Does anyone know where I can get a script that looks into the contents of a directory and outputs the contents of the directory into a list that is displayed on an HTML page? (Also, the names should contain hyperlinks to those contents.) Or, how would I do this? Thanks! Deborah

RE: Email function question

2003-01-28 Thread Scott, Deborah
>To make this work, you have to specify the list variable ($i): >$file = "/suidbin/sendmail -t"; >$var = "the_file.txt"; > >open(FILE, "$var") || die "cant open text file"; >@file = ; >close(FILE); >foreach $i (@addressee) { > open(MAIL, "|$file $addressee") || die "can't open sendmail"; >

RE: Email function question

2003-01-27 Thread Scott, Deborah
> >if your file is a text file > >#! /usr/bin/perl -w > >$file = "/suidbin/sendmail -t"; >$var = "the_file.txt"; > >open(FILE, "$var") || die "cant open text file"; >@file = ; >close(FILE); > >##open pipe to sendmail >open(MAIL, "|$file") || die "cant open sendmail"; >print MAIL "To: blah\@devn

Email function question

2003-01-24 Thread Scott, Deborah
I asked this before, but I probably made the question too long and confusing to follow. How do I send an email using perl? The path for the sendmail program is: h:/blah/blah/SENDMAIL/sendmail.exe I want it to open the contents of a particular file. Then send the contents of the file as a

RE: used sendmail to send an attachment

2003-01-24 Thread Scott, Deborah
Wow, this is kinda freaky Usually my perl email goes directly into a "perl" mail directory, but your two emails just popped into my work-inbox. I was just now starting to test a script for sending mail that works perfectly on a unix machine, but isn't working correctly on an NT server. That's

Epoch midnight

2003-01-10 Thread Scott, Deborah
I thought I understood the answer, but I need more details. What exactly would I enter if I want a program to find the epoch time for midnight each night? I know how to find "current" time and date in both "human" time and epoch time. I want to generate a report that displays the events that are

RE: Help with end-time start-time sorting problem

2003-01-09 Thread Scott, Deborah
Yes, I think so. THANKS! This is a great fantastic group. Glad I found it. >Have got what you need yet? >Wags ;) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Help with end-time start-time sorting problem

2003-01-09 Thread Scott, Deborah
Here's the txt file. Thanks! -Original Message- From: Wagner, David --- Senior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 2:32 PM To: Scott, Deborah; [EMAIL PROTECTED] Subject: RE: Help with end-time start-time sorting problem

Help with end-time start-time sorting problem

2003-01-09 Thread Scott, Deborah
I have a txt data file that has several fields. Two of the fields are start time and end time (listed in epoch time). I need to write a perl program that finds (and prints) events that occur between midnight "last night" and "midnight tonight." First problem: The date for midnight "last night" a