HP3000-L Archives

March 2002, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Penney <[log in to unmask]>
Reply To:
John Penney <[log in to unmask]>
Date:
Fri, 8 Mar 2002 09:47:20 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (345 lines)
Hey, Mark:

Yeah, well, as I tell my clients and employers "...Yeah, I love a challenge..."..

As I suspected, but only happening in Batch and working perfectly interactively. I'm going to post this to the 3000-L and see if anybody else is having a similar or like occurrence.

Regards





John M Penney
Systems Programmer
Production Services
Information Services Department
Pierce County
Tacoma, WA 
253-798-6215
253-798-6680 Fax
[log in to unmask]

>>> Mark Bixby <[log in to unmask]> 03/08/02 09:34AM >>>
Hi John,

Well, I still don't understand it any better!  :-(

I cannot explain why you are getting extra blank lines in MAILSPF in batch but 
not in a session.

As you have found, once Sendmail sees the first blank line, it assumes 
everything that follows is message body and not headers.

You don't have any UDCs or command files that have replaced ECHO or any other 
vanilla MPE commands, do you?

Since the problem is within the MAILSPF file, this actually isn't 
Sendmail-related at all.

- Mark B. (who finally has SolSym reservations)

John Penney wrote:

> Mark:
> 
> Don't know where that line came from. Musta been an uncleared cut-and-paste! Looks like a fragment of line 51.
> 
> This is what I thought,i.e. I sent you:
> 
> Note the "blank" 137.
> 
> 
>    134   :PRINT MAILSPF
>     135   FROM: #J2203 JLOGR JPENNEY.TECSUP
>     136   To: [log in to unmask] 
>     137   
>     138   CC: [log in to unmask] 
>     139   
>     140   Subject: #J2203
>     141   
>     142   
> 
> 
> HTH and thanks!
> 
> JP
> 
> 
>>>>Mark Bixby <[log in to unmask]> 03/07/02 04:40PM >>>
>>>>
> Hi John,
> 
> I don't understand -- where does the "USETVAR" string come from in output line 137?
> 
> - Mark B.
> 
> John Penney wrote:
> 
> 
>>Mark:
>>
>>I'm having the following (apparent) problem with Sendmail:
>>
>>I utilize an MPE command script, TRANSMT2, that interactively, creates and sends messages to hither and yon. When I execute the same script from within a Jobstream, it fails to set up the "CC" or Subject lines correctly.
>>
>>Online
>>
>>TRANSMT2 JLOGR, " ", " "
>>
>>This is the output from the online:
>>
>>to [log in to unmask] 
>>cc: [log in to unmask] 
>>Subject: #S2295
>>
>>text of message:
>>
>>
>>File "!" not found.  No purge done. (CIWARN 383)
>>HPCWD: /TECSUP/JPENNEY
>>HPDATEF: THU, MAR  7, 2002
>>HPDATETIME: 20020307141259000
>>
>>
>>Include File: JLOGR
>>
>>!JOB JLOGR,JPENNEY.TECSUP;OUTCLASS=LP,1
>>!PRINT TRANSMT2.JPENNEY
>>!XEQ TRANSMT2.JPENNEY !HPSTDLIST," "," "
>>[log in to unmask] 
>>[log in to unmask] 
>>!PRINT MAILSPF
>>!TELL JPENNEY.TECSUP;"Normal E-O-J JLOGR"
>>!EOJ
>>
>>
>>Now, when I execute it with JLOGR, this is what I get:
>>
>>
>>
>>      2   :JOB JLOGR,JPENNEY.TECSUP,JPENNEY.
>>      3   Priority = ES; Inpri = 8; Time = UNLIMITED seconds.
>>      4   Job number = #j2203.
>>      5   THU, MAR  7, 2002,  2:16 PM.
>>      6   HP3000  Release: C.70.00   User Version: C.70.00
>>      7   MPE/iX  HP31900 C.39.06  Copyright Hewlett-Packard 1987.
>>      8   All rights reserved.
>>      9   STREAMED BY JPENNEY.TECSUP (#S2925) ON LDEV# 167
>>     10      STREAM DATE:   THU, MAR  7, 2002,  2:16 PM
>>     11          *******   Pierce County HP 3000 System Notice   *******
>>     12    
>>     13   This  system is intended  to be used  solely by  authorized users for
>>     14   legitimate Pierce County business.  Users are monitored to the extent
>>     15   necessary  to  properly  administer  the  system  and  to investigate
>>     16   unauthorized  access  or  use.  By  accessing  this  system, you  are
>>     17   consenting  to  this  monitoring.   Unauthorized  use  is subject  to
>>     18   prosecution.
>>     19    
>>     20   Welcome!  You are now signed on.
>>     21   :COMMENT   STREAM FILE JLOGR.JPENNEY.TECSUP
>>     22   :COMMENT     STREAMED BY JPENNEY.TECSUP,JPENNEY ON LDEV 167
>>     23   :COMMENT     RUNNING PROGRAM MAIN.PUB.VESOFT
>>     24   :COMMENT     ON THU, MAR 07, 2002,  2:16 PM
>>     25   :PRINT TRANSMT2.JPENNEY
>>     26   PARM FILE="$NULL",TO=" ",CC=" "
>>     27   COMMENT
>>     28   COMMENT MPE Script: TRANSMIT
>>     29   COMMENT
>>     30   COMMENT Abstract:
>>     31   COMMENT
>>     32   COMMENT This executable command file is used to send messages from
>>     33   COMMENT Sessions or Jobstreams on the HP3000 to users both internal
>>     34   COMMENT to and external of Pierce County. It utilizes Sendmail 8.12.1
>>     35   COMMENT which was downloaded from the HP site: jazz.external.hp.com/
>>     36   COMMENT
>>     37   COMMENT There are three (3) parameters:
>>     38   COMMENT 1) The name of a file that contains the text of your message,
>>     39   COMMENT [Required],
>>     40   COMMENT 2) The "To:" i.e. recipient (target) of your message,
>>     41   COMMENT [Required], prompted if no entry, and
>>     42   COMMENT 3) The "cc:" of your message,
>>     43   COMMENT [Optional], prompted if no entry.
>>     44   COMMENT
>>     45   COMMENT The MAILSPF Temporary file is used to build the syntax as inpu
>>t
>>     46   COMMENT to Sendmail-
>>     47   COMMENT
>>     48   COMMENT
>>     49   SETVAR TOO,"!TO"
>>     50   SETVAR CCC,"!CC"
>>     51   SETVAR SUBJECT,"#!HPJOBTYPE!HPJOBNUM"
>>     52   IF "!FILE" = "" OR "!FILE" = " " OR "!FILE" = "$NULL" THEN
>>     53    ECHO No file specification given
>>     54    RETURN
>>     55   ENDIF
>>     56   IF "!TO" = " " THEN
>>     57   INPUT TOO;PROMPT="To: "
>>     58   SETVAR TOO,"!TOO"
>>     59   IF "!TOO" = " " THEN
>>     60    ECHO No To specification given
>>     61    RETURN
>>     62   ENDIF
>>     63   ENDIF
>>     64   IF "!CC" = " " THEN
>>     65   INPUT CCC;PROMPT="Cc: "
>>     66   SETVAR CCC,"!CCC"
>>     67   ENDIF
>>     68   COMMENT
>>     69   COMMENT Build the "From:" variable-
>>     70   COMMENT
>>     71   SETVAR MAILSPF_FROM &
>>     72   "#!HPJOBTYPE!HPJOBNUM !HPJOBNAME !HPUSER.!HPACCOUNT"
>>     73   PURGE MAILSPF,TEMP
>>     74   BUILD MAILSPF;TEMP;REC=-80,3,F,ASCII;DISC=10000
>>     75   ECHO FROM: !mailspf_from     >> MAILSPF
>>     76   ECHO To: !TOO                >> MAILSPF
>>     77   IF "!CCC" <> " " THEN
>>     78   ECHO CC: !CCC                >> MAILSPF
>>     79   ENDIF
>>     80   ECHO Subject: !SUBJECT       >> MAILSPF
>>     81   ECHO                         >> MAILSPF
>>     82   ECHO                         >> MAILSPF
>>     83   ECHO !HPCIERRMSG             >> MAILSPF
>>     84   ECHO HPCWD: !HPCWD           >> MAILSPF
>>     85   ECHO HPDATEF: !HPDATEF       >> MAILSPF
>>     86   ECHO HPDATETIME: !HPDATETIME >> MAILSPF
>>     87   ECHO                         >> MAILSPF
>>     88   ECHO                         >> MAILSPF
>>     89   ECHO Include File: !FILE     >> MAILSPF
>>     90   ECHO                         >> MAILSPF
>>     91   PRINT !FILE                  >> MAILSPF
>>     92   ECHO                         >> MAILSPF
>>     93   ECHO                         >> MAILSPF
>>     94   XEQ SENDMAIL.PUB.SENDMAIL "-t" < mailspf
>>     95   ECHO SENDMAIL !SUBJECT Using !FILE
>>     96   ECHO Sent to: !TOO
>>     97   IF "!CCC" <> " " THEN
>>     98   ECHO CC: !CCC
>>     99   ENDIF
>>    100   COMMENT
>>    101   :XEQ TRANSMT2.JPENNEY !HPSTDLIST," "," "
>>    102   To: 
>>    103   Cc: 
>>    104   PURGE MAILSPF,TEMP
>>    105         ^
>>    106   File "MAILSPF.JPENNEY.TECSUP" not found.  No purge done. (CIWARN 383)
>>    107   SENDMAIL #J2203 Using $STDLIST
>>    108   Sent to: [log in to unmask] 
>>    109   CC: [log in to unmask] 
>>    110   :LISTFTEMP MAILSPF,-3
>>    111   
>>    112   TEMPORARY FILES FOR JPENNEY.TECSUP,JPENNEY
>>    113   
>>    114   ********************
>>    115   TEMPORARY FILE: MAILSPF.JPENNEY.TECSUP
>>    116   
>>    117   FILE CODE : 0                   FOPTIONS: ASCII,FIXED,NOCCTL,STD
>>    118   BLK FACTOR: 3                   CREATOR : JPENNEY.TECSUP
>>    119   REC SIZE: 80(BYTES)             LOCKWORD:
>>    120   BLK SIZE: 240(BYTES)            SECURITY--READ    : ANY
>>    121   EXT SIZE: 0(SECT)                         WRITE   : ANY
>>    122   NUM REC: 34                               APPEND  : ANY
>>    123   NUM SEC: 16                               LOCK    : ANY
>>    124   NUM EXT: 1                                EXECUTE : ANY
>>    125   MAX REC: 10000                          **SECURITY IS ON
>>    126                                   FLAGS   : NO ACCESSORS
>>    127   NUM LABELS: 0                   CREATED : THU, MAR  7, 2002,  2:16 PM
>>    128   MAX LABELS: 0                   MODIFIED: THU, MAR  7, 2002,  2:16 PM
>>    129   DISC DEV #: 4                   ACCESSED: THU, MAR  7, 2002,  2:16 PM
>>    130   SEC OFFSET: 0                   LABEL ADDR: $0000009B.$005D7520
>>    131   VOLCLASS  : TECH:DISC
>>    132   
>>    133   
>>    134   :PRINT MAILSPF
>>    135   FROM: #J2203 JLOGR JPENNEY.TECSUP
>>    136   To: [log in to unmask] 
>>    137   USETVAR SUBJECT,"#!HPJOBTYPE!HPJOBNUM"
>>    138   CC: [log in to unmask] 
>>    139   
>>    140   Subject: #J2203
>>    141   
>>    142   
>>    143   File "!" not found.  No purge done. (CIWARN 383)
>>    144   HPCWD: /TECSUP/JPENNEY
>>    145   HPDATEF: THU, MAR  7, 2002
>>    146   HPDATETIME: 20020307141634900
>>    147   
>>    148   
>>    149   Include File: $STDLIST
>>    150   
>>    151   
>>    152   
>>    153   
>>    154   
>>    155   
>>    156   
>>    157   
>>    158   
>>    159   
>>    160   
>>    161   
>>    162   
>>    163   
>>    164   
>>    165   
>>    166   
>>    167   
>>    168   
>>    169   :TELL JPENNEY.TECSUP;"Normal E-O-J JLOGR"
>>    170   "J2051 JPENNEY.TECSUP" not interactive.  Message not sent to job. (CIW
>>ARN 1627)
>>    171   :EOJ
>>    172   CPU sec. = 3.  elapsed min. = 1.  THU, MAR  7, 2002,  2:16 PM.
>>
>>Output to email:
>>[log in to unmask] (No cc nor any Subject):
>>
>>CC: [log in to unmask] 
>>
>>Subject: #J2203
>>
>>
>>File "!" not found.  No purge done. (CIWARN 383)
>>HPCWD: /TECSUP/JPENNEY
>>HPDATEF: THU, MAR  7, 2002 
>>HPDATETIME: 20020307141634900
>>
>>
>>Include File: $STDLIST
>>
>>?-----------------------------------------------------------------------------------------------
>>
>>The root cause appears to be line #137, i.e. a blank line. When Sendmail encounters that blank line, it takes all following lines as just part of the message itself. 
>>
>>
>>The listing for the script is in the jobstream $Stdlist.
>>
>>Many thanks for any ideas!
>>
>>
>>
>>John M Penney
>>Systems Programmer
>>Production Services
>>Information Services Department
>>Pierce County
>>Tacoma, WA 
>>253-798-6215
>>253-798-6680 Fax
>>[log in to unmask] 
>>
>>
>>
>>
> 
> 


-- 
[log in to unmask] 
Remainder of .sig suppressed to conserve expensive California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2