HDTenEightyP/NetNews huggingface dataset:
From: klm@gozer.mv.com (Kevin L. McBride)
Subject: Re: How to print 2pages on 1paper?
Organization: GhostBuster Central - Southern NH Usenet Access, Nashua, NH
Date: Tue, 05 Jan 93 17:51:38 GMT

bill@bilver.uucp (Bill Vermillion) writes:

> In article <1992Dec31.183118.29509@debbie.cc.nctu.edu.tw> u7911093@cc.nctu.edu.tw (Erik Wang) writes:


> >	and by the way, Is there any program which can print text data on
> >two side of one paper?

> That's not a software problem.  You need something like and HP Laser
> Jet IID, IIID, or similar, that have duplex paper printing.

> It takes a sheet from the tray, prints it, puts it into the manual
> loading tray, sucks it back in upside down, and prints the other side.

And before anyone gets the idea that HP is the only company in the
world that makes decent laser printers, I'd like to point out that
there are at least a dozen printers made by other companies including
DEC, QMS, Talaris and probably Epson that can print duplex.
Newsgroups: comp.unix.programmer
From: jal41820@uxa.cso.uiuc.edu (Smiley)
Subject: C programming help?
Organization: University of Illinois at Urbana
Date: Wed, 6 Jan 1993 21:50:12 GMT

Does anyone know of an ftp site, or possess, any sort of help file/program
that can teach someone the basics of C? Our system contains a program usable
with the command "learn", but it assumes a basic knowledge is already known.

(Yes, I realize it would be easier to learn from a book or a good University
course, but that's not what I want to do.  :)

-- 
        Josh Laff              #     #      
email to: smiley@uiuc.edu     _       _     Hello! I am a signature virus!  
      (217) 384-6249         |#\_____/#|    Join the fun and copy mo*#(*&^!>.
                              \#######/     
Newsgroups: comp.unix.programmer,comp.unix.questions,comp.unix.wizards
From: asu@server2.panther.mot.com (Russell Trotter)
Subject: Anybody got rz/sz to work on their UNIX system?
Organization: Motorola Panther Project, Chandler, AZ
Date: Tue, 12 Jan 1993 17:09:55 GMT

I've got the rz/sz (zmodem send/receive) code built and installed
on a 4.3 BSD system.  I also dialed up to this system from a PC. 
I've been working on a zmodem send/receive functions from the PC 
(using Greenleaf's Commlib package, this package comes with
zmodem send and receive functions ) and wanted to test 
the file transfer to/from this UNIX system.  I can't get either type of
transfer to work at all.  I'm guessing the problem is with the UNIX
side (rz/sz), because I thought I had read a few postings before
saying that people have had trouble with them.  Are there any
things I need to do (like with the stty command, or any other
configuration tools, even hacking the rz/sz code!) that will
let me transfer files successfully?

Thanks to all.

Russ 
Newsgroups: comp.unix.programmer
From: mjb1@cec2.wustl.edu (Lord of flying horned octopi)
Subject: Please ignore this test
Organization: Washington University, St. Louis MO
Date: Thu, 7 Jan 1993 18:45:02 GMT


This is a test.
From: jhussain@cs.ucsd.edu (Jabir Hussain)
Newsgroups: comp.unix.programmer
Subject: Named pipes over NFS
Date: 6 Jan 93 02:33:23 GMT
Organization: CSE Dept., UC San Diego


Hi all,
 	I have a writer program that runs in the background waiting to
	open(<namedpipe>, O_WRONLY).  When somebody tries to cat the
	<namedpipe>, the writer wakes up, does its thing and close()s.
	Then it goes back to the open() call, blocks waiting for the
	next reader, etc.

	The problem happens when the <namedpipe> is on an NFS mounted
	filesystem.  The writer only wakes up for readers running on its
	processor.  Remote readers hang.  I thought that running the
	writer on the NFS server would solve the problem, but no.

	Any ideas?  Thanks.

Jabir
From: chetanm@visionware.co.uk (Chetan Mistry)
Newsgroups: comp.unix.programmer
Subject: Socket Refs
Date: 4 Jan 93 16:23:22 GMT
Organization: VisionWare Ltd., Leeds, UK
X-Newsreader: Tin 1.1 PL4

Here are 2 reasonable refs on sockets :-

1. "BSD Sockets - a turtorial" - i think thats what the papers called
   Computer Communications vol. 10 no. 1 Feb 1987

2. Unix Networking Programming Manual (chapters 10 and 11)

Are you sure you want to use sockets ????
Newsgroups: comp.unix.programmer
From: herring@netcom.com (John Herring)
Subject: HELP!  SCSI programming HOW?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: usa
Date: Tue, 12 Jan 1993 03:28:47 GMT

Does anyone know of some sample source code that will show me how to talk
SCSI to my SCSI device?  I know I have to use IOCTL.
I am doing this in SYS5 R3.


Thanks in advance.

john

herring@netcom.netcom.com



Newsgroups: comp.unix.programmer
From: paulc@bloom-picayune.mit.edu.mit.edu (Paul Cloke)
Subject: Finding the address of a proc structure under BSD
Organization: Massachvsetts Institvte of Technology
X-Newsreader: Tin 1.1 PL3
Date: Fri, 8 Jan 1993 19:58:43 GMT


Hi,
I want to access some elements of the proc structure (in /usr/include/sys/proc.h
) in BSD. I think you do this by using nlist(3) to find one process and then
step through a linked list (p_link or p_rlink) until you find the one you want.
I'm not sure firstly whether this the correct method, and if it is which is the
nlist symbol to look at from the kernel?


Any help or pointers to online references would be appreciated.

Paul Cloke

(paulc@plume.mit.edu)
Newsgroups: comp.unix.programmer
From: pdills@staff.tc.umn.edu (Peter in Amiland)
Subject: "HELP!" SCO Unix ODT Development 2.0 - question ....
Followup-To: pdills@epx.cis.umn.edu
Organization: University of Minnesota
Date: Sun, 10 Jan 1993 05:12:30 GMT


Does anyone know what exactly is included in this development package?

The 2 things I am purchasing are:

SCO Unix ODT Server 2.0

       and

SCO Unix ODT Development 2.0


Do either have X-Window development capabilities? If not, what do they have
and what would I need to purchase to develope X Window applications?

Is "JSB Multiview Desktop" a good 'over the net' program to use for using
X Window applications in a Netware3.11/Windows3.1 environment?

--

If anyone can help me with these questions, from either experience or other
knowledge, PLEASE send me email as SOON as possible...

Your help would be MUCH appreciated!

Thank you,

Peter

*---------------------------------------------------------------------------*
*  pdills@epx.cis.umn.edu (Internet, immer/always) Walter Computer Lab Mngr *
*  pdills@mermaid.micro.umn.edu (Internet, immer/always) Consultant EE/CSCI *
*                                                                           *
*< "Simply using the network isn't enough, you've got to EXIST in it..."   >*
*                                                               -sw         *
*---------------------------------------------------------------------------*



Newsgroups: comp.unix.programmer,comp.unix.xenix,comp.unix.aix,comp.lang.c
From: jak@sactoh0.sac.ca.us (Jay A. Konigsberg)
Subject: Reading pins on a port
Keywords: slave/local printer sets pin 20 high when buffer full and/or sets Xoff
Organization: Sacramento Public Access Unix
Date: Mon, 4 Jan 93 09:28:01 GMT

I'm writing a program to control a printer attached to the AUX port
of a terminal. Accuctally, its operational. However, I have to guess
when the buffer is too full. If enough data isn't sent, then the printer
is idle and if too much is sent the terminal locks up and can't be used.

In testing I hooked a breakout box up to the AUX port and the printer
and noticed that pin 20 (DTR) was going high when data ceased to be sent to
the printer. Additionally, I suspect that the printer is sending Xon/Xoff
but can't verify it.

Additionally, I hooked the breakout box up between the terminal and the
computer and saw that the DTR high is passed through to the computer.

What I want to do is test the printer PRIOR to sending data through the
terminal or, know that the printer sent an Xoff and wait for the Xon.
If I can read the DTR from the serial port, that would be best. Though
I want to support Xon/Xoff as a default.

This is a home project and will be released in alt.sources or perhaps
unix.sources when I'm done.

Please respond by email as this has been posted to several newsgroups.

-- 
-------------------------------------------------------------
Jay @ SAC-UNIX, Sacramento, Ca.   UUCP=...pacbell!sactoh0!jak
If something is worth doing, it's worth doing correctly.
Newsgroups: comp.unix.programmer
Subject: Re: Info Needed on programming w/sockets
From: vpopesc@opus.uucp (Valentin Popescu)
Date: 5 Jan 93 23:21:22 PST
Organization: California State University, Lost Angels

In article <1992Dec27.183251.2471@Princeton.EDU> subbarao@fc.hp.com writes:
>In article <78825@hydra.gatech.EDU> gt5870c@prism.gatech.EDU (Noah White) writes:
>>
>>    I am starting a program which will use sockets. I have never used them
>>before but have read and understood the man pages for socket, bind, 
>>listen etc. However I would like some more indepth information and 
>>perhaps programming examples for sockets (Internet domain, SOCK_STREM
>>style). Could anyone point me in the right direction? Thanks!
>
>The best thing to do here is NOT read the manual pages. That is, don't read
>them until you have learned about them. An excellent book to learn about
>sockets and the like is UNIX Network programming by W. Richard Stevens. He
>also has another book out called Advanced Programming in the UNIX
>Environment. Other good books include the section on socket implementation
>in the demon book, as well as Comer's Internetworking with TCP/IP (Volume 3
>has extensive coverage of sockets).

You will sooner or later have to get into those man pages and even
those header files to figure out what's going on. :) I learned how to
do sockets from a file on the network:

"BSD Sockets: a quick and dirty primer" by Jim Frost.

I found it under the name of "socket-primer.tar.Z".. I don't know
exactly where it can be found, but I may still have a copy myself
(nroff or tex).
-- 
  veritas..    |         ...vincit    
____________  -+-__      ____________          Valentin Popescu
\_____     /   |/_ \     \     _____/   Internet: vpopesc@calstatela.edu
 \_____    \_____/  \____/     ____/    Bitnet:   vpopesc@csla.BITNET
Newsgroups: comp.unix.programmer
From: subra@bynar.austin.ibm.com (Sivarama Subramanian)
Subject: Question about setjmp system call 
Date: Thu, 7 Jan 1993 16:00:50 GMT
Reply-To: subra@bynar.austin.ibm.com (Sivarama Subramanian)
Organization: IBM Austin, TX

Hi everyone,
	I have a question about setjmp system call. I am using AIX version 3
UNIX. When setjmp is called with a parameter buf, it is supposed to store the
environment. What I like to know is what the buffer contains? Is there any
document which lists the individual fields of the buffer. 
	The reason I need this is that I need to check to make sure that the
stack contents are the same after longjmp is called. Is there any difference 
between _longjmp, _setjmp & longjmp, setjmp calls. 

	Thanks in advance.


subra
Newsgroups: comp.unix.programmer
Subject: Which Child?
From: abmg@cerc.wvu.wvnet.edu (Aliasghar Babadi)
Date: Wed, 6 Jan 1993 16:53:56 GMT
Organization: Concurrent Engineering Research Center
Keywords: child fork

Hi,
	I have a program which forks several child processes. If one
child is terminated. Is there a way to findout which child has been  
terminated? Thanks.
Xref: sparky comp.unix.programmer:5886 comp.unix.misc:4914
From: stieber@kreutler.de (Juergen Stieber)
Newsgroups: comp.unix.programmer,comp.unix.misc
Subject: RPC question
Date: 11 Jan 93 15:32:04 GMT
Organization: KREUTLER GmbH, 7500 Karlsruhe 1, Germany

Newsgroups: comp.unix.programmer,comp.unix.misc
Subject: RPC question

comp.unix.programmer, comp.unix.questions

Hi all,

I hope I've chosen the right newsgroups :-)
We are planning to re-develop our application and splitting it in several
processes which run on several UNIX workstations (at the moment our
application consists mainly of one process).
These processes shall communicate by using RPC's.

My question now is:
Is it commonly useful or necessary to provide a self-made wrapper
interface around the RPC interface or is it sufficient to use the
RPC interface directly in our application processes ???

Sorry if this is a silly question or if the question lacks of additional
information, but we have no experience with RPC and at the moment
I can't provide much more information.

Any hints or comments are greatly appreciated. Please anwer by e-mail,
because I normally don't read this newsgroups.

Thanks in advance

Juergen

-- 
 Juergen Stieber                  |     Phone: +49 721 8508-86
 KREUTLER GmbH, P.O.B. 3744       |     Fax:   +49 721 8508-90
 D-7500 Karlsruhe 1, Germany      |     Mail:  stieber@kreutler.de
 "And then one day you find, ten years have got behind you, no one told
  you when to run, you missed the starting gun ..."     Pink Floyd
Newsgroups: comp.unix.programmer
From: ccowboy@seer.gentoo.com (Sharif Torpis)
Subject: FIX FOR NUTSHELL MESSAGE QUEUE CODE ?
Date: Tue, 12 Jan 1993 17:53:40 GMT
Organization: Brad Lanam,  Walnut Creek, CA

I have been unable to get the System V message queue examples given in
"Using C o the Unix System" by O'Reilly & Associates to work. I get an
error when msgsnd is called, specifically "invalid argument." Is this
code buggy? From what I learned in the chapter, it looks fine.

ccowboy@gentoo.com

Newsgroups: comp.unix.programmer
From: jalegre@tsp.med.umn.edu (John Alegre)
Subject: Trouble with setitimer and getitimer.
Organization: University of Minnesota
Date: Fri, 8 Jan 1993 21:50:18 GMT

I am trying to time a tight SCSI read loop on a 
NeXT machine.

I am having trouble with the UNIX functions
setitimer and getitimer.

My code (or one variation of it) looks like this:

struct itimerval	after;

setitimer(ITIMER_REAL, &after, 0L);
	puts("Starting");
	for(i=1;i<=num;i++)    
		[self performSCSIRequest];
	puts("Done");
getitimer(ITIMER_REAL, &after);

I have not been able to get any kind of succesful
data out of setitimer or getitimer.  If I do not
assvalues to the various componets of after,
I get back 0 or all fields.  If I do assaign
initial values, I either get back the same values
or garbage.

All comments welcome
---
John N. Alegre
Andante Systems
VideoLabs Inc.

#############################################################
# NeXTMail preferred.             |
# jdev@andante.mn.org             |
# alegrej@andante.mn.org          | If you plant ice,
# jalegre@lenti.med.umn.edu       |  you're gonna harvest wind!
# alegrej@libros.andante.mn.org   |    Hunter/Garcia      
#############################################################

Newsgroups: comp.unix.programmer
From: gaf@alpha.aosg.gsf.dec.com (Gerald Feldman)
Subject: Re: Which Child?
Keywords: child fork
Reply-To: gaf@aosg.gsf.dec.com
Organization: Digital Equipment Corporation
Date: Wed, 6 Jan 1993 21:31:04 GMT

In article <C0Fyxx.ABn@cerc.wvu.wvnet.edu>, abmg@cerc.wvu.wvnet.edu (Aliasghar Babadi) writes:
|> Hi,
|> 	I have a program which forks several child processes. If one
|> child is terminated. Is there a way to findout which child has been  
|> terminated? Thanks.

-- 
The fork(2) system call returns the process-id of the child it forked.
The wait(2) system call returns the process id of the child that
terminated. There is a familty of wait calls that you can use depending
upon your flavor of Unix. You can use a signal handler if the parent
process needs to do other than wait. In the parent, you can keep a table
of children you forked.
A very simplified model(note that I do no error checking):

pid_t ptable[NUMBER_OF_PIDS]; /* This table could be in shared memory 
				* if multiple processes can perform the
				* fork()
				*/
int	numchild;
:
:
/* fork a child */
pid = fork();
if (pid) { /* I am parent */
	ptable[numchild++] = pid; /* Add pid to the table */
	:
	:
	: 
	pid = wait(0); /* wait for a child to terminate */
	:
} else { /* in child */
	:
}

+-------------------------------------------------------------+
Jerry Feldman		   AOSG
Mailstop: GSF1-1/K13	   DTN:264-5863
Digital Equipment Corp.    EXT:(603)884-5863
5 Wentworth Drive          ip(DEC): gaf@aosg.gsf.dec.com
Hudson, NH 03051           enet: alpha::gaf
			   Internet(HOME):gaf@palantir.newton.ma.us
+-------------------------------------------------------------+
From: ray@sbi.com (Raymond Blum (C0140))
Newsgroups: comp.unix.programmer
Subject: Re: How to print 2pages on 1paper?
Date: 4 Jan 93 18:44:31 GMT
Reply-To: ray@sbi.com
Organization: Salomon Inc.


 
>>	and by the way, Is there any program which can print text data on
>>two side of one paper?
>
>You need a laserprinter capable of that, and I've never seen one
>(though I don't doubt they exist).
>
  They exist! The HP Laserjet IID and IIID do this, Well..... I've never USED one but I know they CLAIM to do this.

---Ray				  "I'd rather see than be one."
Newsgroups: comp.unix.programmer
From: subra@bynar.austin.ibm.com (Sivarama Subramanian)
Subject: How does abort () work 
Date: Fri, 8 Jan 1993 15:24:42 GMT
Reply-To: subra@bynar.austin.ibm.com (Sivarama Subramanian)
Organization: IBM Austin, TX

Hi folks,
	I am writing test cases to test the functionality of abort (). I would
like to know when a process calls abort (), can it ignore it by setting the
signal (SIGABRT, SIG_IGN). In a related note, I would like to know if a
process can send a signal to itself.

Thanks in advance.


subra
From: eddie@mdavcr.mda.ca (Man Sang Lui)
Newsgroups: comp.unix.programmer
Subject: RS232 & networking and process logging?
Date: 4 Jan 93 22:17:05 GMT

Hi

I am new to this group and I have some problems which might have already been
solved by somebody in this group.

I am currently having a SLC SPARCstation connected to a CD-ROM jukebox via 
an RS232 (ttyb) and a SCSI ports. The jukebox has four CD-ROM drives and 
four CDs can be loaded and accessed at the same time.  All the control
commands (e.g. selecting a CD, rotating the carousel) are sent from the Sun
workstation to the jukebox via the RS232 port.  The communication speed is
9600 bauds.  The actual mounting and the ejection of the CDs are done via
the SCSI interface.  The jukebox and the workstation are also in a class B
network.  I have already done some software design and development for the
controlling program using C.  My questions are:

1. In order for a host in the network to use the jukebox, a user has to use 
   rlogin or telnet to log on to the SLC SPARCstation before s/he can run the 
   controlling program.  Is there a way that I can incorporate this in my C 
   program so that the jukebox is visible from any host in the network?  Is 
   this a client-server based and/or networking problem?  What is the best 
   way for me to tackle this?

2. Assuming question no. 1 can be achieved, how do I deal with locking 
   facility for multi-user access?

3. If the jukebox is available on the network, I would like to keep a log 
   file to record which user is using what and possibly show this to all
   current users on the network.  In others words, when the controlling 
   program is started by a user, it has to know which user is currently 
   using what disc and for how long.  How should I approach this?

I should be much obliged if you could suggest some solutions or point me 
in the right direction.  Please e-mail me at eddie@mda.ca

Thanks in advance.
Eddie
From: msp@msen.com (Jerry Foster)
Newsgroups: comp.unix.programmer
Subject: Print graphics files
Date: 11 Jan 1993 14:08:08 GMT
Organization: Msen, Inc. -- Ann Arbor, Michigan
NNTP-Posting-Host: garnet.msen.com
X-Newsreader: TIN [version 1.1 PL8]

We are looking for a command line utility that will print various graphics
files (gif, tiff, dwg, dxf, etc.).  Either commercial or public domain
will do.  We are running SCO Unix 3.2.4 with Hewlet Packard laserjets and
a deskjet color.   Does anyone know if such a utility exists?  

Thanks in advance,

Jerry Foster



--
  //  Jerry Lee "3P"
\x/   e-mail: jfos@msp.com
Newsgroups: comp.unix.programmer,comp.windows.ms.programmer,comp.client-server
From: erick@demorgan.uwaterloo.ca (Erick Engelke)
Subject: Re: Mission Critical Apps & MS-Windows
Organization: University of Waterloo
Date: Tue, 12 Jan 1993 17:45:10 GMT

nicklas@access.digex.com (Randolph C Nicklas) writes:
>My company is considering using Windows 3.1 (W3.1) for a mission
>critical application.  

>Mission critical in general are applications
>such as nuclear reactor systems, air traffic control systems, and
>manned space flight systems.  Mission critical in our application
>means real-time, multiply concurrent applications consisting of
>custom-built W3.1 applications, commercially-off-the-shelf (COTS)
>products, ethernet LAN programs with both incoming and outgoing
>traffic, older custom-built DOS applications, and X-Windows
>displays exported from X-applications on the LAN for monitoring and
>controlling a fleet of up to 25 publicly used communications
>satellites.  This W3.1 user station is the only access point into
>a distributed computing environment of over 40 server machines; if
>the user station malfunctions there is no other alternative access
>available.  Our design is primarily using W3.1 as a client to
>several UNIX servers over the ethernet LAN.

A mission critical system as you describe needs much more than
Windows + Ethernet as a single access point.

Windows is unstable at best, reboots are not an option but one
slight problem can and will crash the PC without any reasonable
form of protection.  Also, the versions keep getting released
well before developers can rigorously test their networking
subsystems and user applications.  So users must have some way
to quickly gain control from a second station because waiting
for a reboot is often not option.

Being a network developer and knowing many others at the 
various companies, we are weary of recommending windows
to users and very few of us have suggested it function as even a
fileserver.  Enough people complain when fileservice is 
unreliable or even slow, imagine the response to an unreliable
service when it affects safety.

You should also consider multiple redundant LANs because lives
are at stake and networks fail.  Heck, redundant systems are
common place for any critical system such as stock exchanges, etc.

OS/2 and probably NT (when it becomes available) offer much more in 
the way of reliability.  I have managed to crash OS/2 when it should 
have trapped the errors, but that's far better than countless
times when Windows crashes without apparent reason.

Them's my opinions, but I know they are shared by many of my peers
who cannot say them publically because doing so would tend to make 
people think their products were less reliable than their competition's.


Erick
-- 
----------------------------------------------------------------------------
Erick Engelke				 	            WATTCP Architect
erick@development.uwaterloo.ca     TCP/IP was easy but i still can't work VI
From: jdg41088@uxa.cso.uiuc.edu (Pickaxe)
Subject: Re: How to print 2pages on 1paper?
Organization: University of Illinois at Urbana
Date: Tue, 5 Jan 1993 14:58:02 GMT

ray@sbi.com (Raymond Blum (C0140)) writes:


> 
>>>	and by the way, Is there any program which can print text data on
>>>two side of one paper?
>>
>>You need a laserprinter capable of that, and I've never seen one
>>(though I don't doubt they exist).
>>
>  They exist! The HP Laserjet IID and IIID do this, Well..... I've never USED one but I know they CLAIM to do this.

The IIIsi does it too.

-- 
| Joe Gross          | Department of Electrical and Computer Engineering |
| pickaxe@uiuc.edu   | University of Illinois at Urbana-Champaign        |
| (217) 328-4331     | "I've given up trying to stay ahead of the times, |
| NeXTmail welcome   | it's now a matter of how far I get left behind."  |
Newsgroups: comp.unix.programmer