4. Esempi
Ecco un esempio (intenzionalmente breve) per chiarire la sintassi:
----- 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 -----
Nota: alcuni dei nomi host sono autentici, ma i nomi utente sono tutti fittizi.
Si otterrebbe la seguente risposta:
--------------------------------------------------------------------
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
--------------------------------------------------------------------
Per effettuare realmente la distribuzione e ottenere una conferma, si dovrebbero modificare le prime due righe come segue:
----- cut here -----
//Test JOB Echo=NO
Distribute mail Ack=mail
--------------------
E si otterrebbe la seguente risposta:
--------------------------------------------------------------------
Mail forwarded to LISTSERV@UGA for 3 recipients.
Mail posted via BSMTP to [email protected].
Mail posted via BSMTP to [email protected].
--------------------------------------------------------------------
Infine, rimuovendo la parola chiave "Ack=mail" si effettuerebbe una distribuzione "silenziosa" senza alcuna conferma, adatta alla modalità di produzione.