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:
Douglas Becker <[log in to unmask]>
Reply To:
Douglas Becker <[log in to unmask]>
Date:
Tue, 16 Sep 2003 10:08:15 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (95 lines)
Rich,

Thank you so much for your answer! Much appreciated! My job now actually prints things in batch!

Thank you! Thank you! Thank you!

Now if we could get M.B. Foster and HP to put that little gem in their premier products, we'd have a winner instead of pages of blanks. Actually, M.B. Foster did fix their ODBC listener in version 7; maybe Inetd is fixed in 7.5?

Again, thanks.

Douglas

>>> Rich Trapp <[log in to unmask]> 09/16/03 09:32AM >>>
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 *

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

ATOM RSS1 RSS2