There may be a more elegant solution, but I am sending you,
directly to your email address, a ZIP file which contains
a batch file, a couple of small utility programs and the
text files which are output by the two programs. It should
be enough to accomplish your BLAT BackupExec jobs mailings.
The following documentation is also in the email:
====
ZIP file contents:
1. READJOB.bat the batch file that calls the programs chain
to create the filename output for the BLAT report.
2. DF.exe a compiled program that will output a sorted
directory file of the current directory contents,
sorted by date (ascending). This is a modified
PowerBasic freeware program that I removed lines
from which output text to the screen after the
program runs. This way no output would be sent to
the screen when the batch job runs. DF.exe outputs
a file named whatever is passed to it from a command
line parameter. HOWEVER, READ_DIR.exe is expecting to
find a file called DIRLIST.txt (see below) so you
should have the first line of your batch file be as
it is in READJOB.bat - DF.exe /d /r /wDIRLIST.txt+
The filename, DIRLIST.txt, is case sensitive. That
is to say that READ_DIR.exe wants to see it as is.
3. DIRLIST.txt The file that is output from DF.exe which is a sorted
(by date ascending) file and which contains the
filenames from whatever the current directory that
DF run from. Obviously this should go in the same
directory as your Backup Exec jobs.
4. READ_DIR.exe a small program I wrote to take the output from DF,
and parses it for the most recent dated program and
then sends that filename output to LASTFILE.txt
5. LASTFILE.txt The file that is output by READ_DIR.exe which contains
the latest file in the directory that DF is in. This
should have the latest Backup Exec job filename as its
contents assuming all progs are in the same directory.
I would assume that the last line that you would put in READJOB.bat would
be something like the one below here. This assumes that BLAT is already
installed and is in your path or in the subdirectory you are running
READJOB.bat from. As I said above, this line would replace the command
"TYPE LASTFILE.txt" in the READJOB.bat file. It is there for demonstration
purposes.
BLAT n:\the_directory_path\LASTFILE.txt -priority 1 -subject "BackupExec Job Report" -to ***@burotec.fr
I have tested this program in Window XP Pro environment and it has worked
fine, but have done no further testing. I do not forsee any problems running
it in a Win2K or 98 environment.
Hope this helps.
- Dave
-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf Of HOUVENAGHEL Pascal
Sent: Tuesday, October 04, 2005 2:01 AM
To: ***@yahoogroups.com
Subject: RE: [blat] how to send a different file every day ?
By default the filename is BEX0***.xml were *** is a sequence number
________________________________
De : ***@yahoogroups.com [mailto:***@yahoogroups.com] De la part de David Austin Envoyé : lundi 3 octobre 2005 21:43 À : ***@yahoogroups.com Objet : RE: [blat] how to send a different file every day ?
Got it. OK. BLAT it is.
Back to your problem then... How does the XML file get named? Is it based on date, time or a sequence number?
-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf Of HOUVENAGHEL Pascal
Sent: Monday, October 03, 2005 2:07 AM
To: David Austin
Cc: ***@yahoogroups.com
Subject: RE: [blat] how to send a different file every day ?
Yes but i don't have any smtp server installed. For the servers who have Exchange server installed there is no problem. But on many sites I don't have Exchange.
________________________________
De : ***@yahoogroups.com [mailto:***@yahoogroups.com] De la part de David Austin Envoyé : vendredi 30 septembre 2005 23:06 À : ***@yahoogroups.com Objet : RE: [blat] how to send a different file every day ?
Hi,
Doesn't Backup Exec let you configure sending the log file when it completes a job as one of its options? I'm using version 7.5 and it has an SMTP hook that simply emails the whole backup job report to me.
-dave
________________________________
From: ***@yahoogroups.com on behalf of phouvenaghel
Sent: Fri 9/30/2005 5:11 AM
To: ***@yahoogroups.com
Subject: [blat] how to send a different file every day ?
i'm using backup exec. it create a file after every job with the results.
I want to use blat.exe for sending this new file every day.
j'utilise backup exec. après chaque sauvegarde, il me crée un journal avec un nom différent que j'aimerais envoyer avec blat.exe.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/dkFolB/TM
--------------------------------------------------------------------~->
--
Homepage:
http://www.blat.net