Zum Hauptinhalt springen

4. Beispiele

Hier ist ein (absichtlich kurzes) Beispiel, um die Syntax zu verdeutlichen:

   ----- cut here -----
//Test JOB
Distribute mail Ack=mail Debug=yes
//To DD *
[email protected] BSMTP
[email protected] BSMTP
[email protected] BSMTP
[email protected] BSMTP
[email protected] BSMTP
/*
//Data DD *,EOF
Date: Tue, 19 Jan 1993 10:57:29 -0500
From: Robert H. Smith <[email protected]>
Subject: Re: Problem with V5.41
To: [email protected]

I agree with Jack, V5.41 is not a stable release. I had to fall back
to V5.40 within 5 minutes of installation...

Bob Smith
----- cut here -----

Hinweis: Einige der Hostnamen sind echt, aber alle Benutzernamen sind frei erfunden.

Sie würden die folgende Antwort erhalten:

   --------------------------------------------------------------------
Job "Test" started on 20 Feb 1993 01:09:40

> Distribute mail ack=mail debug=yes
Debug trace information:

ABC.COM goes to SEARN (213) - single recipient
ALPHA.CC.BUFFALO.EDU goes to UBVM (027) - single recipient
LIBRARY.RICE.EDU goes to RICEVM1 (022) - single recipient
TAMVM1 goes to TAIVM1 (247) - single recipient
WS-4.XYZ.EDU goes to SEARN (213) - single recipient

Path information:

TAIVM1 : UGA RICEVM1 TAIVM1
UBVM : UGA UBVM
RICEVM1 : UGA RICEVM1

(Debug) Mail forwarded to LISTSERV@UGA for 3 recipients.
(Debug) Mail posted via BSMTP to [email protected].
(Debug) Mail posted via BSMTP to [email protected].

Job "Test" ended on 20 Feb 1993 01:09:40

Summary of resource utilization
-------------------------------
CPU time: 0.086 sec Device I/O: 6
Overhead CPU: 0.045 sec Paging I/O: 5
CPU model: 9221 DASD model: 3380
--------------------------------------------------------------------

Um die Verteilung tatsächlich durchzuführen und eine Bestätigung zu erhalten, ändern Sie die ersten beiden Zeilen wie folgt:

   ----- cut here -----
//Test JOB Echo=NO
Distribute mail Ack=mail
--------------------

Und Sie würden die folgende Antwort erhalten:

   --------------------------------------------------------------------
Mail forwarded to LISTSERV@UGA for 3 recipients.
Mail posted via BSMTP to [email protected].
Mail posted via BSMTP to [email protected].
--------------------------------------------------------------------

Schließlich würden Sie durch das Entfernen des Schlüsselworts „Ack=mail“ eine „stille“ Verteilung ohne jede Bestätigung durchführen, die für den Produktivbetrieb geeignet ist.