HP3000-L Archives

September 2003, Week 3

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:
Rich Trapp <[log in to unmask]>
Reply To:
Rich Trapp <[log in to unmask]>
Date:
Tue, 16 Sep 2003 10:32:13 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (79 lines)
John,
  Might see if this is related:

Through this at google:

        printf output in batch group:comp.sys.hp.mpe 

The 2nd entry from 1999 from Kevin Miller contains the following:
(chopped/snipped wildly)



        In session mode, C opens
                stdin   as line buffered
                stdout  as line buffered
                stderr  as unbuffered
        In job mode
                stdin   as full buffered
                stdout  as full buffered
                stderr  as unbuffered

        To correct this ( assuming you think this is a problem as I do
), you  need
        to add
                setvbuf ( stdout, NULL, _IOLBF, 0 );
	
        Please lookup the call in your HP C/iX Library reference manual
!


Not sure if this is the answer, but buffering has bitten me a few times
too.

RAT

Rich Trapp
Consultant
Managed Business Solutions 
[log in to unmask]


-----Original Message-----
From: John Penney [mailto:[log in to unmask]] 
Sent: Tuesday, September 16, 2003 9:10 AM
To: [log in to unmask]
Subject: PRINTF statements in "C"

Fellow Listers:

The PRINTF command compiled using the HP/iX "C" compiler outputs only
spaces when run in Batch. Can anyone cast some light on this phenomenon
as I have page upon page of blank lines in my MBFoster ODBC Job logs-
quite useless when trying to debug or determine what's happening.

TIA



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]
www.co.pierce.wa.us

The opinions expressed herein reflect those of the sender.  They do not
necessarily
reflect the opinions of Pierce County unless specifically stated
otherwise.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

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

ATOM RSS1 RSS2