HDTenEightyP/NetNews huggingface dataset:
From: anthony@kurango.cit.gu.edu.au (Anthony Thyssen)
Subject: Re: Ghostscript & printcap filters
Organization: Griffith University, Brisbane, Australia.
Date: Thu, 1 Oct 92 04:14:07 GMT

walker@superboy.jsc.nasa.gov (Doug Walker) writes:
|
| I am trying to install ghostscript as a printcap filter so
| my laserjet 3 can print postcript. What should the printcap entry look
| like?
|
| This is the current printcap entry for this printer: 
|
| lp:\
|       lp=/dev/ttya:br#9600:ms=-tabs,onlcr,-parenb,cs8,ixon,ixoff:
|
| I tried adding 
|
| if=/usr/local/bin/gs:
|
| also
|
| if=/usr/local/bin/gs -:
|
| also I tried the same things as of=...
|
| It seems this should be possible, But I couldent find anything in the
| documentation that came with it. 
|
| I am running gs22.
|
| Thanks
|
| Doug

I am not sure for a laserjet however I did make a epson line printer
use gs so it can handle postscript (though a bit slowly).

First I creaded a script to determine if the file to print is postscript
or text. If it was postscript I converted it to epson graphics with GS.
In your case you would convert it to laserjet graphics. 
NOTE: the ghostscript program must be compiled with that device built in
or it will not work.

----lineprinter filter script--(/usr/spool/filters/epson_ps_convert)----

#!/bin/sh -
#
#    Printer filter to check if the file is postscript. If it is
# the program will attempt to convert it to a epson graphic dump
# This is achieved through the use of the ghostscript converter.
#
#resolution=-r60x72      # single density
resolution=-r120x72    # double density
#resolution=-r180x72    # quad   density

PATH=/usr/ucb:/usr/bin:/usr/bin/X11

Temp=/tmp/epson_convert.$$
trap 'rm -f $Temp.*; exit 1' 1 2 3 15

read first_line
case "$first_line" in
%!*)    # ---- postscript file being printed --- convert -----
   echo "$first_line" > $Temp.ps
   cat - >> $Temp.ps
   gs  -sDEVICE=epson $resolution -sOUTPUTFILE=$Temp.epson \
   -dNOPAUSE  $Temp.ps  quit.ps  >/dev/null
   cat $Temp.epson
   ;;
*)      # plain text file
   echo "$first_line"
   cat -
   ;;
esac

rm -f $Temp.*
exit 0


--------Printcap setup to use the filter-------

lp1|lp|Fujitsu DL5600 - draft dot-matrix printer:\
        :lp=/dev/ttyb:br#9600:tr=\E@:rw:pw#162:\
        :lf=/var/adm/lpd-errs:af=/var/log/lp1:sd=/usr/spool/lp1:\
        :if=/usr/spool/filters/epson_ps_convert:\
        :ms=raw,ixon,ixany:

-----------------------------------------------

NOTE: The method the filter script uses to determine if the file
is postscript is a kludge. If the file is already a epson file (binary)
the line read could concievably barf on unusual characters.

Please send any improvments or suggestions to myself. Thanks if you do!


  Anthony Thyssen - (CIT, Griffith University)       anthony@cit.gu.edu.au
------------------------------------------------------------------------------
  FileNames are infinite in length,
                where infinity is set to 255 chars! - "The Unix File System"
------------------------------------------------------------------------------
Newsgroups: comp.unix.questions,comp.unix.shell,comp.unix.programmer
From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
Subject: Further to redirecting a command to a "tty"
Organization: University of Manitoba, Winnipeg, Canada
Date: Mon, 5 Oct 1992 07:21:48 GMT


First I would like to thankyou all who replied and tried to help. I was
not looking for a way to redirect the output of a command to a tty but the
command itself so it could get executed on the tty its being sent to. Many
thanks to Ben Liblit [liblit@cs.psu.edu] for solving it for me. I use csh so
I would use a built in command "source". Only one problem remains, however.
How can I send just a carriage return to a tty as a command. I put a
carriage return [ctrl-Vctrl-<CR>] in a file and "source"d it to the 
desired /dev/tty. But I got a message saying "^M: command not found". Any
idea how to solve it?

thanks to you all very helpfull folks again!!!

--nasir
umnoor@ccu.umanitoba.ca
Xref: sparky comp.unix.questions:11505 comp.unix.programmer:4801 comp.sys.hp:10955
From: ben@bailey.UUCP (Ben Bailey)
Subject: Re: WARNING and question for users of ar(1)
Newsgroups: comp.unix.questions,comp.unix.programmer,comp.sys.hp
Date: 26 Sep 92 13:49:30 GMT
Distribution: world
Organization: Ben Bailey's Home..Tampa Fl.

One way to determine the length of the file name is to cat the directory
entry into the od utility.  The format repeats itself, so you could then
count the bytes.  Often, this is faster then trying to find the vendor's
doc regarding this.

Ben
--
Ben Bailey                 ben@bailey.uucp -- bailey!ben@uunet.uu.net
12210 Shady Forest Dr.     ben@bailey.tscs.com
Riverview, Fl. 33569       -- The main thing is to keep the main
813-677-5021                  thing the main thing.  Mainly.
From: skeeve@hpb.cis.pitt.edu (John Huffman)
Newsgroups: comp.unix.questions
Subject: Re: tar problem
Date: 30 Sep 92 22:31:30 GMT
Organization: University of Pittsburgh

In article <32634@adm.brl.mil> WP921000%PACEVM.bitnet@cunyvm.cuny.edu ( RANDIP singh) writes:
>i backed up my home direc. files in SCSI cartridge using the following
>command " tar cvf /dev/rst0 . "
>the backup was fine because I checked the presence of the files using
>" tar tvf /dev/rst0 "
> By mistake i put in the command "tar cvf /dev/rst0 " ( note absence of ".")
>which probably initialised the begining sector of the tape which stores
>the allocation table ( no files were loaded onto the tape.
>Now whenever I try to download the files from the tape using
>" tar xvf /dev/rst0 " nothing happens.On " tar tvf dev/rst0 "
>no files are displayed . Now I know the files are there but I am unable to
>download it to the hard drive. The files are very important and and the
>matter urgent. Can Anybody help ????? THe system is sun 4.0.3.
>you can mail me direct at "wp921000@pacevm.bitnet"
>                                thanks a lot in advance

What has occured is the second tar cvf has created a tar with no files
in it on your cartridge and has then wrote the end of tar information
which happens to be 1024 Nulls.  This will destroy the header for the 
first file in your archive and the first 512 bytes in the first file.
To recover what is left do the following:

First dd the archive to a file to work in:

	dd if=/dev/rst0 of=foo

Remove the first 1024 NULLS in the file, to remove the garbage the
second tar command has added.

Then you need to search forward until you find the header for the next
file in the archive.  It will be on a 512 byte boundary, and will have
lots of NULLS and some other data.  You can examine the exact format
of the header in tar(5).  The first character of the header will be the
start of the filename.

Cut everything before this point and place it in a file, this is the 
salvageable part of your first file.

What remains will be a tar archive including everything except the first
file of the archive and can be unarchived normally.

This process requires a binary editor, I use emacs to handle this, it works
fairly well.  Otherwise you can work it with od(1), some sort of split utility
and a lot of patience.  Of course if the first file is also a tar it is 
a little more involved, but still manageable.

						- John Huffman
From: kwak@postech.ac.kr (kwak jong kun CSD)
Newsgroups: comp.unix.questions
Subject: Re:Re: How to rm this file...?
Date: 1 Oct 92 09:52:25 GMT

Hi!
	I think find works well.
	Somethings, like this
		$ find . -name -i -exec rm {} \;
	try..
-- 
________________________________________________________________________
Jong-Geun, Kwak                 |       e-mail
        COMPUTER SCIENTCE       |       kwak@vision.postech.ac.kr
        POSTECH.                |       kwak@vesta.postech.ac.kr
________________________________|_______________________________________
From: s0424986@let.rug.nl (Peter Bouthoorn)
Newsgroups: comp.unix.questions
Subject: Re: what does 'daemon' mean?
Date: 30 Sep 92 11:59:49 GMT
Organization: Faculteit der Letteren, Rijksuniversiteit Groningen, NL

In article <1992Sep29.231125.25367@exu.ericsson.se> :
>Trivia from "hell"... 
>
>  The word "daemon" is derived from an ancient Greek concept of a 
>  "personal daemon" which is similar to a "guardian angel". 

Not true. The word "daemon" has a lot of different meanings and
connotations in the old Greek language. The most general definition
therefore would be something like 'celestial being' or rather:
'supernatural being'. I can't remember ever having seen it with
the meaning 'guardian angel', which seems rather like a christian
concept to me (but who know, it might have been used with the meaning
of some kind of guardian. One person who liked to speak about his
"daemonia" (his personal daemon, in a way) was Socrates, which as
Socrates said told him to do/believe certain things (if I remeber well).
Anyway...are people really interested in this? (I am and i've always
found it strange to have to deal with daemons in computers :).

Just my 2$

Peter Bouthoorn
s0424986@let.rug.nl
Student Classical Languages and AI
at the Faculty of Arts, Groningen
Newsgroups: comp.unix.questions
From: exby@pogo.Colorado.EDU (|J| Exby)
Subject: multi Screen not 132 column?
Summary: termcap, vt220 etc..
Keywords: screen
Organization: University of Colorado, Boulder
Date: Tue, 29 Sep 1992 20:29:59 GMT


I am currently running  a  GNU utility called
screen v 3.02  on a HP9000/822s  with HPUX 8.02.  "screen" allows
me to have "multiple sessions" eventhough I am wried directly
to an HP serial port with a dumb vt100 terminal..etc...

My terminal is emulating vt100, as some software requires, and
works find under screen EXCEPT, screen doesn't allow standard
vt100 "escape" sequences through  to my terminal so I can
go into 132column mode, for display of reports etc.
a shellscript such as:

echo "[?3h[?4l[?7h\c"

SHOULD put my screen in 132col mode, which it does when I am not
running "screen", but nothing happens when these ESC codes are
echoed when I am running screen.

Is there something I can change within the "termcap" for screen
to allow me to go into 132col mode, if so where and what do I put in?
I am not a termcap wizard but am competant unix person nonetheless.  :-)
please, any advice and help is greatly appreciated.  I am stumpoed.


 "This is a formica table."   -LMFAP
.....................................
-=====-                        -=====-
  -=-   exby@pogo.Colorado.EDU   -=-
   -                              -

Xref: sparky comp.unix.questions:11711 news.newusers.questions:4316
Newsgroups: comp.unix.questions,news.newusers.questions
Subject: Re: Sending Mail to BitNet
From: marcello@deis20.cineca.it (Marcello Dalpasso)
Date: 2 Oct 92 16:12:07 +0100
Distribution: world
Organization: Dept. of Electronics, Computer Science & Systems, Univ. of Bologna, Italy

eytan@leland.Stanford.EDU (Ethan Joseph Alpern) writes:

>I am trying to send mail to a friend of mine in Italy.  He told me
>that he was on BitNet and gave me the following address: csuc_bo@almad1.
>cineca.it   I have tried sending mail to him but it did not work.
>How do I need to change this address so that my mail will reach him.

>Please send your suggestions to eytan@leland.stanford.edu

>Thanks,


I'm inside the .cineca.it domain, and I think that almad1 is a non-existent hostname.

In my opinion, the correct host name can be alma01 (zero-one), because any alma??
host name is followed by two digits.

If this is in order, you can simply send mail to csuc_bo@alma01.cineca.it if your
sendmail understands the mail-exchangers, and the mail will be gated to bitnet by
cine88.cineca.it

Otherwise, you can send to csuc_bo%alma01.dnet@dectcp.cineca.it
and dectcp will gate your mail to bitnet...

Hoping this can help you.

Bye
-- 
	Marcello Dalpasso (e-mail: marcello@deis16.cineca.it)
	D.E.I.S. - Department of Electronics, Computer Science and Systems
	Viale Risorgimento 2, I-40136 Bologna, Italy			
	Phone: +39-51-644-3015 (fax: +39-51-644-3073)
Newsgroups: comp.unix.questions
From: weigand@pecan.cns.udel.edu (Steve Weigand)
Subject: Logon detection
Reply-To: weigand@pecan.cns.udel.edu
Organization: University of Delaware, Newark
Date: Thu, 1 Oct 1992 11:41:34 GMT

Woops... I didn't realize that comp.sources.unix was a dead newsgroup.
So, I've uploaded waituser.c to comp.sources.misc as well. 

Ciao, 
- Steve Weigand
 (weigand@ee.udel.edu)
Newsgroups: comp.unix.questions
Subject: HELP! postscript file problem...
From: kit@vax1.mankato.msus.edu
Date: 1 Oct 92 20:16:50 -0600
Organization: Mankato State University

Hello,
   Does anybody know how to convert postscript file into ordinary text
file (ascii format)?   Welcome any reply.
Thank you for your help.

-Kakit   (kit@vax1.mankato.msus.edu)


Newsgroups: comp.unix.questions
From: clin@eng.umd.edu (Charles Lin)
Subject: Re: AWK or PERL: which is better?
Date: Wed, 30 Sep 92 00:33:58 GMT
Organization: College of Engineering, University of Maryland, College Park
Reply-To: clin@eng.umd.edu (Charles C. Lin)

   Too bad there is only a single text (outside, I presume some
official text of PERL) available.  It's an O'Reilly text.
While the style of reading is casual, I found the first couple
of pages a little lacking in accuracy, or perhaps what I really
mean is that it could be a bit more precise.  As an analogy,
one has to be very careful in explaining pointers and arrays
in C, and it is easy to get quite confused.  If I casually
mention the power of pointers, and so forth, I may not define
it well enough to make it clear what it is I am trying to say.

   I'll need to look back at the book to recall what I had
problems with.  All I recall now is that there were some things
that didn't seem so clear to me, and that pinning down certain
things would help.   Unlike C, or even C++, both of which have
tons of books to choose from, from the terse, but complete
Kernighan and Ritchie, to some of the slower, but esaier to
read books like SAMS, the Waite Group, Teach Yourself C,
etc.

   I'll admit that the AWK book by the Aho, Weinberg(?) and
Kernighan does look pretty decent though.  I happen to
be one of those who prefer a complete, yet written for the
slowpoke kind of books.

--
Charles Lin
clin@eng.umd.edu
Xref: sparky comp.unix.amiga:2190 comp.sys.amiga.hardware:16118
From: won@cs.columbia.edu (Won Y. Kim)
Newsgroups: comp.unix.amiga,comp.sys.amiga.hardware
Subject: Hard drive question/Amiga Unix.
Date: 28 Sep 92 23:16:40 GMT
Organization: Columbia University Department of Computer Science


Sorry for this request for a repost of FAQ, but I missed the relevant
thread and do not have access to FAQ's

Basically I was wondering about hard drive compatibilities between amigaunix 
and SCSI drives.

If anyone has installed ANY extra drives >80mb, <2.4Gb to their amigaunix 
system, can he/she please post some short info on 
brandname/ results/ overall feelings/ install tips (again..)?

I am thinking of adding some much needed storage to my amiga unix after
struggling with installing various gnu utilities (which still isn't complete!
after 3 weeks of constant hassle no less!)

One crucial thing I would do is basically remount root, swap and unix boot
partitions on a larger drive so that I can install ALL the new "system" files
 in their correct place.
(right now "$ make install" fails miserably..:-/ )

I was wondering if anyone had done this, and how the process of reinstalling
amiga unix  in the new, larger hd was.

And with respect to booting, were there any problems on booting up with a 
non standard unix boot partition (i.e. one that is not in the internal
SCSI id 6 Quantum HD.)

One thing I don't understand is, do most drives come with external casing 
and is ready to be daisy chained to the SCSI port on the A3k? (My 
limited experience has answered no)

Thanks in advance. (really!! :-)

********** Please first e-Mail all responses of any kind, ************

(Thanks again! :-)

				- Struggling with 530 blks free in "/"
				- Won.
-- 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Won Kim. Programmer ReProgrammer..
"I am the SuperGrunt. The *ORIGINAL* SuperGrunt. Perhaps you have heard of me?"
						- The Orginal SuperGrunt
From: riesterb@feserve.cc.purdue.edu (Brett Riester)
Newsgroups: comp.unix.amiga
Subject: Problems Booting Amix2.1
Summary: Can't Boot HD, Must Boot Floppies
Keywords: Amix2.1, Boot, Swap Space, Partitions
Date: 2 Oct 92 23:07:15 GMT
Followup-To: poster
Distribution: usa
Organization: Purdue University

Regarding my previous post about AMIX 2.1 Problems to which Jan Carlson
from Commodore was kind enough to respond; as you requested, I'm posting
this to News instead of emailing you directly:

No, I can't even boot my hard drive; but I can boot into single user mode
from the installation floppies.  The Amiga UNIX install script is run:

1) It asks for my keyboard type.  I choose usa (American).

2) It asks to either install or repair.  I choose repair.

3) It scans the SCSI bus for hard disks...
	-> SCSI id 0	100 megabytes
	-> SCSI id 6	100 megabytes
(AMIX 2.1 is on SCSI id 0, ADos is on id 6)
I choose 0.

4) ->
	 #	Name		Start	Blocks	Size
	1:	UNIX_Root	  128	163840	80 MB
	2:	UNIX_Swap	163968	 36864	18 MB
	3:	UNIX_Boot	200832	  4096	 2 MB

5) It asks for the partition of the root filesystem; I enter 1.
   It asks for the partition of the swap space;      I enter 2.
   It asks for the partition of the UNIX bootstrap;  I enter 3.

6) It asks for the root partition file system;
	s5 : Traditional UNIX file system
	ufs: Berkeley file system
   I enter s5.

7) It checks partitions...
-> mount: mount of /dev/dsk/c0d0s1 as /mnt failed; No space left on device
   Do you want to fsck /dev/dsk/c0d0s1?
I enter y.

->	File System:	Volume:
	** Phase 1	Check Blocks and Sizes
	** Phase 2	Check Pathnames
	** Phase 3	Check Connectivity
	** Phase 4	Check Reference Counts
	** Phase 5	Check Free List
FILE SYSTEM WAS SET TO OKAY
4 files 6 blocks 188 free
*** FILE SYSTEM WAS MODIFIED ***
/dev/dsk/c0d0s1 mounted on /mnt
Running interactive shell...
Logout with ctrl-D when you are finished
#

At this point, I am apparently logged in as the root (# prompt) in single
user mode, using the floppy disk file system.  The commands I can use
are restricted to only those on the floppy and I don't know how to access
either the hard disk commands or file system; what should I do now?
Apparently it did an 'fsck' and succeeded in mounting c0d0s1 as /mnt
but what does that really mean; can I access the hard disk or do I need
to mount more devices, or what?

Please help by emailing riesterb@feserve.cc.purdue or bjr@expert.cc.purdue.edu

Brett Riester
-- 
Brett (riesterb@feserve, bjr@expert)
From: scotts@csugrad.cs.vt.edu (James Scott Scecina)
Newsgroups: comp.unix.amiga
Subject: HP Laserjet & 2.1
Date: 5 Oct 92 03:29:02 GMT
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA


	Just wondering if AMIX 2.1 has Laserjet/Deskjet specific drivers or
if there are some available on the net.  I own a Deskjet 500 and I never
got it to work properly with the 'standard' printer driver that came with
2.0.   Any help on this matter would be appreciated. Thanks.


-Scott 
 
Newsgroups: comp.unix.amiga,comp.sys.amiga.hardware,comp.sys.amiga.unix
From: janc@mirchi.uucp (Jan Carlson)
Subject: Re: Battery-Backed-Up Clock And Unix
Date: Sat, 3 Oct 1992 03:17:54 GMT
Organization: Another Amiga UNIX System

In article <Re-Z4H7NTB@heaven7.in-berlin.de> martini@heaven7.in-berlin.de (Martin P. Ibert) writes:
>Hi everybody,
>
>I'm wondering if is possible to set the battery-backed-up clock of my A3000T
>without shutting down Unix and booting (urk) AmigaDOS. I tried several
>things, all circling around date(1), but to no avail. After the next boot,
>when the system time gets set from the BBUC, it's way off again. Problem is,
>my BBUC is losing quite a bit (up to a minute a day).
>
>Thanks for any help!

SETCLK
	setclk -s saves the current system time to the battery backed clock.


DATE
	"date MMDDhhmmYY" sets the system time AND the battery clock.


AMIXADM
	amixadm is easier if you forget the format that date wants.


AMIGAUNIX VS. AMIGADOS TIME

	AmigaUNIX normally stores GMT in the battery clock and uses the TZ 
	environment variable to provided local time.  AmigaDOS stores the
	local time in the battery clock.

	My own preference is to run UNIX time normally and just let 
	AmigaDOS stay on GMT. :-)

	But you can force AmigaUNIX to interpret the battery clock as 
	local time like AmigaDOS by writing ":localtime" in /etc/clkzone.

		echo ":localtime" > /etc/clkzone

	Then AmigaUNIX and AmigaDOS will agree on the time.
	and you must do the Daylight/Standard change manually twice a year.
	Unless you live in Arizona like Fred Fish, or in Dawson Creek,
	Britsh Columbia where they don't believe in saving daylight
-- 
--
Jan Carlson  
Email: janc@amix.commodore.com 
(215)269-7665
From: mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst)
Newsgroups: comp.unix.amiga
Subject: Re: 1GB hard-disk and Amiga UNIX
Date: 5 Oct 92 17:53:00 GMT
Organization: Max-Planck-Institut f"ur Radioastronomie

In <1992Oct2.111215.5251@tom.rz.uni-passau.de> hessmann@unipas.fmi.uni-passau.de (Georg Hessmann) writes:

>Hu, do I never learn it? 
>What's the correct notation for a 3.5 xx hard disk? (a small one :)

Either 3.5 inch or 3.5" :-) 3.5 Zoll tut's auch, wenn man auf deutsch schreibt.

>Or what else can be go wrong?

Everything that can go wrong will go wrong.
-Murphy-



-- 
Michael van Elst
UUCP:     universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
                                "A potential Snark may lurk in every tree."
Newsgroups: comp.unix.amiga,comp.sys.amiga.advocacy
From: lovealld@infonode.ingr.com (David Loveall)
Subject: Re: : -( Contest - win your own A4000 :-(
Reply-To: dave@xanadu.reston.ingr.com
Organization: Intergraph Corp. Federal Systems Division, Reston VA
Date: Mon, 5 Oct 1992 21:59:42 GMT

(Amiga crossposting reduced to comp.sys.amiga.advocacy and comp.unix.amiga..)

In <1992Oct3.132223.23600@sserve.cc.adfa.oz.au> braca2@cspyr1.cs.adfa.oz.au (BRAY CHRISTOPHER) writes:

>HEY, IF ALL THE AUSSIES AND KIWIS AND EUROPEANS ARE GETTING SUCKED OFF

>ABOUT HOW POOR THEIR C= REPRESENTATIVE IS.  WRITE TO THE BASTARDS.

>IF WE ALL DO IT, THEN MAYBE THEY WILL LISTEN TO US.

>I was given and address when  I bought my amiga, I think it is about time
>I used it.

>sorry for shouting.
>dont complain, act.

>hook

Yes, writing letters (especially to the president of a division) does work.
Or at least it worked with a lemon Pioneer tape deck I bought a number (9)
of years ago.  Eventually got my money refunded, but that's not my point - 
If the company is responsive enough to stay in business someone _should_ 
notice.

I should add something, though.  Abusive and/or profane language will
_never_ be read by the intended recipient, but will be tossed by the 
secretary/admin person who works for them.

I should say that "lemon" is an "american" idiom for defective, problem-
prone merchandise..  It occurred to me that there appears to be 
some difference between Australian and American idioms...  ;-) 


-- 
David Loveall                      | "Invent a new Mexican Junk   
Intergraph Corp, Reston VA         |  food and the world will make
dave@xanadu.reston.ingr.com        |  a run for YOUR border..."
 ..uunet!ingr!reston!xanadu!dave   |                    - MST 3000
Newsgroups: comp.unix.amiga