A piping problem
I created a file: /usr/local/bin/printer.staircase.filter This file consists of two lines: #!perl while(STDIN){chop $_; print $_\r\n;}; I made it executable. It is owned by root. This file is an attempt to write a filter to eliminate the staircase effect (i.e. no CR after a LF) on my dot-matrix line printer. The filter is supposed to put a CR LF at the end of every line. (cf.: a perl manual) I can give the command less /usr/local/bin/printer.staircase.filer to bash, and get a listing of the file -- it really IS there. But when I try to pipe stuff into the filter with the following command to bash cat mytextfile | /usr/local/bin/printer.staircase.filter | lpr I get the the following error report: bash: /usr/local/bin/printer.staircase.filter: No such file or directory lpr: stdin: empty input file Can anyone explain why bash tells me the file is not there? Note: I am logged in as root for this operation, and all files involved are owned by root. THANKS for your consideration joeh
Re: A piping problem
X-Authentication-Warning: kovax.ml.org: kovacsp owned process doing -bs Date: Sun, 6 Dec 1998 22:01:21 -0500 (EST) From: Peter Kovacs [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] cc: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 6 Dec 1998, Joseph Hartmann wrote: #!perl while(STDIN){chop $_; print $_\r\n;}; Change perl to the full path to perl. I don't think the shebang notation has a path associated with it. Peter Thank you Peter (and also to you, Carl (in your private e-mail, giving me the same suggestion). Putting the full path for perl (/usr/bin/perl) solved the problem. Best regards, joeh - --- Peter D. Kovacs UIN: 241701 Operator, Perl Programmer, Computer Guy [EMAIL PROTECTED] http://www.egr.uri.edu/~kovacsp/ http://kovax.ml.org/~kovacsp/pubkey.txt -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBNms289MOTwUEHK6FEQLf7QCgxe9Jvz7uqlvnN2teC3CU9ycDTEUAn0lK 3BhNar+WXKuxdoM4bF/JUZ7d =V6kI -END PGP SIGNATURE-
Re: Understanding /root Re: My solution
I have run linux for years with just a linux native partition as big as I can make it, and a linux swap (= 2x my ram size) with no problem. I believe your approach is some kind of protection for runaway events, but in four years I have had no such event. I think the partitioning is not necessary, and I think it may have bad side effects (like wasting disk resources). This is just my opinion. joeh
Re: Netscape...
Resent-Date: 1 Dec 1998 20:01:43 - Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] X-Originating-IP: [209.149.174.75] From: Brant Wells [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain Date: Tue, 01 Dec 1998 12:01:07 PST Resent-Message-ID: UYxSdC.A.3B.lsEZ2@murphy Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/27338 X-Loop: debian-user@lists.debian.org Precedence: list Resent-Sender: [EMAIL PROTECTED] Hey all! I downloaded the *.deb packages for NETSCAPE...when I try to install it using dselect, it won't install... Help!!! yeah -- I can't get dselect to work either -- but if you do: dpkg -i the-path-and-filename-you-want.deb it should work ok. joeh Thanx, Brant __ Get Your Private, Free Email at http://www.hotmail.com -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Debian 2.0 (Cheapbyets CD) EZSTART does not recognize CD-ROM IRQ
I have a pretty standard 486 (circa 1995), and I am running DOS622, with my CD-ROM working fine under DOS, having installed the driver that came with the CD-ROM. But my CD Rom is not recognized by Debian EZSTART. EZSTART hangs after I tell it the color and it says something about examining my system. I then switch to Left-Alt F2 and here is what my dmesg says: hdd: IRQ probe failed (0) hdd: IRQ probe failed (0) hdd: Toshiba CD ROM XM-6102D ATAPI CDROM DRIVE hdd: IRQ probe failed (0) ide0 at 0x160-0x1fg, 0x36 on irq 14 ide1 at 0x170-0x177, 0x376 on irq 15 If I then try to mount -r -t iso9660 /dev/hdd /mnt/cdrom my system hangs in the Left-Alt F2 virtual terminal, and I have to reboot. I would like to be able to find out what IRQ and i/o address my Toshiba CD-ROM is working under. MSD will not provide this information (at least I don't recognize it). Can I do it from the Left-Alt F2 virtual console in EZSTART? If I can find out what the irq and i/o address should be (using some GNU utility that is available on the Left-Alt F2 virtual console), how would I then get the system to accept these values for the CD-ROM? Any ideas will be welcomed. Thanks. joeh
Re: where'd my cd go?
Resent-Date: 17 Nov 1998 19:53:25 - Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] X-Mailer: exmh version 2.0.2 2/24/98 (debian) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 17 Nov 1998 16:24:32 -0600 From: Richard E. Hawkins Esq. [EMAIL PROTECTED] Resent-Message-ID: JwGRCC.A.NJ.0QdU2@murphy Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/25688 X-Loop: debian-user@lists.debian.org Precedence: list Resent-Sender: [EMAIL PROTECTED] Unless my memory has faded even more, a possibility I won't rule out, I used to be able to mount cd's with mount /dev/hdc /cdrom -t iso9660 Here's what works for me: mount -r -t iso9660 /dev/hdc /mnt/cdrom where -r is read-only -t iso9660 is the type /dev/hdc is the drive -- check with dmesg to find out what device your -- drive really is (it might be /dev/hdb) /mnt/cdrom is the directory you have to create before you try to mount HTH joeh I now get, mount: block device /dev/hdc is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/hdc, or too many mounted file systems eyry:/home/hawk# mount /dev/hdc /cdrom -t iso9660 mount: block device /dev/hdc is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/hdc, or too many mounted file systems Have I forgotten something? I've tried this with my imsl documentation disk, and a couple of windows disks. I just bought a gaggle of windows programs for the kids as the local dollar store had them for .99 and 1.99, and I need to get them off the cd's and onto the laptop. Preferably to run under dosemu and windows . . . (hey, my 7 year old can use linux. And preferred linux games like xjewel to the fancy windows stuff. I'm trying to keep her sheltered as long as possible, and not have to explain the ugly facts of the real world--like microsoft :) -- -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: linux operating system
Date: Tue, 17 Nov 1998 15:45:53 -0500 (EST) From: Ossama Othman [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Reply-To: Ossama Othman [EMAIL PROTECTED] cc: Debian User List debian-user@lists.debian.org, [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, go to www.gnu.org to see the whole history of the thing. In a nutshell: Richard M. Stallman had the idea to create a free unix clone. Others liked the idea and helped him. Linux wrote the first working kernel. The ESSENCE of the idea is computer code that is totally open to examination and/or change. You've got your facts confused. I confess to my Linux typo when I meant Linus (Torvalds). By facts confused are you referring to this typo? If not, I would like to know to what. Thanks, joeh Linux Torvald's created the Linux kernel. Richard Stallman founded the Free Software Foundation that is responsible for creating most of the GNU utilities that most, if not all, Linux distributions use. The Linux kernel basically runs an operating system that is comprised predominantly of GNU utilities, in most cases. Linus Torvald's did not create GNU nor did GNU, i.e. the Free Software Foundation, create Linux. Linux by itself is not an operating system. It is for this reason that Debian refers to its Linux distribution as: Debian GNU/Linux ^^^ ^ Here are some Linux related sites that might be of interest: www.linux.org www.linuxhq.com By the way, the FSF is working on their own kernel called the Hurd. The Hurd will probably also run an operating system comprised mainly of GNU utilities, just like most Linux distributions. In fact, Debian is developing its own Hurd distribution. -Ossama __ Ossama Othman [EMAIL PROTECTED] 58 60 1A E8 7A 66 F4 44 74 9F 3C D4 EF BF 35 88 1024/8A04D15D 1998/08/26
Re: Program like Partition Magic
Resent-Date: 18 Nov 1998 01:28:33 - Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] X-Originating-IP: [209.58.49.32] From: Eliezer Figueroa [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain Date: Tue, 17 Nov 1998 17:27:56 PST Resent-Message-ID: 6C_3yC.A.xoD.ALiU2@murphy Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/25709 X-Loop: debian-user@lists.debian.org Precedence: list Resent-Sender: [EMAIL PROTECTED] I know there is a free program that can change the size of a partition without lose of data. Someone know how to get it? I know it is called fips, but I don't know where you can get it. joeh __ Get Your Private, Free Email at http://www.hotmail.com -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: in which directory does lynx.cfg belong?
Resent-Date: 16 Nov 1998 09:58:02 - Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] From: David Karlin [EMAIL PROTECTED] Date: Mon, 16 Nov 1998 02:55:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Importance: Normal Resent-Message-ID: dmOG6.A.YNH.pc_T2@murphy Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/25484 X-Loop: debian-user@lists.debian.org Precedence: list Resent-Sender: [EMAIL PROTECTED] Hello, I'm attempting to get lynx to access the web via a proxy server on the lan. As I was reading the lynx documentation, I came across a sample lynx.cfg file. The sample file indicates that its default location should be /usr/local/lib/lynx.cfg, but since I installed from the .deb file in hamm, I was wondering if the debianized version of lynx looks there, or in another location. Does it go in /usr/local/lib/lynx.cfg, or another location? TIA, --David I have an old Redhat 3.1 system -- but my lynx.cfg is in /usr/lib however you should get to know how to use locate: 1st: execute the command updatedb -- this will cause all your files to be entered in a database on your machine. It will take a minute or so to complete. [you should repeat this command whenever your file structure changes (i.e. you add or delete an appreciable number of programs] 2nd: execute the command locate lynx.cfg -- you will be told where your lynx.cfg file is. If you just did a locate lynx you will get all the places where any file having to do with the name 'lynx' is located (including directory names). joeh -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: Dj660c-filter and stepping
Resent-Date: 16 Nov 1998 11:07:17 - Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] Date: Tue, 17 Nov 1998 00:08:27 +1200 From: Alan Tam [EMAIL PROTECTED] X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Resent-Message-ID: jkGBjD.A.wlG.kdAU2@murphy Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/25492 X-Loop: debian-user@lists.debian.org Precedence: list Resent-Sender: [EMAIL PROTECTED] Hi all, Is there a filter for HP Deskjet 660C in the Debian Packages ? So far I can get from magicfilter_1.2-24.deb is dj550c-filter. I am trying to print the manual pages through my HP Deskjet 660c. A question on how to eliminate the stepping effect when I issue the command man printcap /dev/lp1 From the Printing-HowTo, there is an example #!perl #The above line should really have the whole path to perl #This script must be executable: chmod 755 filter while (STDIN){chop $_; print $_\r\n;); #You might also want to end with a form feed: print \f; Should I leave the STDIN as is or replace it with lp1 or something else ? Thank you. Alan Tam -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null One way to do this is to purchase the Technical Reference from Hp. I bought one for my Hp Inkjet 540 for $16. In the manual it explained to me how to stop the staircasing effect. joeh
Re: linux operating system
Resent-Date: 16 Nov 1998 07:24:28 - Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] Date: Sun, 15 Nov 1998 23:26:54 -0800 (PST) From: wendy yap [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: loD_oB.A.3qB.rM9T2@murphy Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/25474 X-Loop: debian-user@lists.debian.org Precedence: list Resent-Sender: [EMAIL PROTECTED] We are a group of students doing an assignment on LINUX operating system. We hope that you will be able to give us some information on the LINUX installation and comparison with windows or DOS. Mail us back as soon as possible. Thank you very much for your co-operation and kindness. Good day and smile :) go to www.gnu.org to see the whole history of the thing. In a nutshell: Richard M. Stallman had the idea to create a free unix clone. Others liked the idea and helped him. Linux wrote the first working kernel. The ESSENCE of the idea is computer code that is totally open to examination and/or change. It is all copyright under the GPL (General Public License) (also invented by Richard M. Stallman). Windows and DOS do not show people the inner works. You have no way to figure out how the software works. In that way, it is the exact opposite of RMS's ideas. Need any more info? joeh _ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
emacs -- (Not X) Hexl-mode C-M does not work
My info on emacs tells me after I do a M-x hexl-mode enter C-M-x should be the way to insert a character in hex. Does C-M-x mean Control m (or Control M) followed by an x ? Control-m or Control M gives me a Carriage Return, not a prefix to a further command. This is emacs from the cheapbytes four-disk set of debian; the emacs is version 19.34 Any suggestions will be appreciated. joeh
Re: emacs -- (Not X) Hexl-mode C-M does not work
Date: Sun, 15 Nov 1998 15:19:11 -0500 (EST) From: Chris Mayes [EMAIL PROTECTED] cc: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 15 Nov 1998, Joseph Hartmann wrote: My info on emacs tells me after I do a M-x hexl-mode enter C-M-x should be the way to insert a character in hex. Does C-M-x mean Control m (or Control M) followed by an x ? Control-m or Control M gives me a Carriage Return, not a prefix to a further command. This is emacs from the cheapbytes four-disk set of debian; the emacs is version 19.34 The M-x is Meta-x or escape-x. In order to access the meta functions you type escape (alt might work too, IIRC) and x. There are a _ton_ of meta functions on emacs. I use M-x compile for my C++ stuff all the time. For a hoot, try M-x font-lock-mode. That will bring up syntax highlighting for whatever mode you might be in, assuming that mode supports syntax highlighting. Although emacs can usually guess what mode it should be in by the extension, sometimes you need to tell it specifically(i.e. .template is not detected as c++). To do this, type M-x whatever-mode. There's a tutorial in emacs that will walk you through many of the major keybindings, btw. I think it will appear automatically if you bring up emacs with no arguments... But I digress. M-x is escape-x. Thank you. -Chris Thank you for your discussion. I am familiar with the M-x meaning, but it is the C-m-x where I am stuck. As soon as I type C-m I get the same result as if i hit the enter key. Yet the info on hexl mode indicates the command to edit point with a hex value is C-m-x. thanks for your input. joeh Any suggestions will be appreciated. joeh -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CC/MC d- s+:+ a-- C++ US P L++ E W++ N- o? K? w O M- V- PS++ PE+ Y+ PGP- t+ 5 X+ R tv+ b++ DI+ D- G e+(++) h--- r++ z+ --END GEEK CODE BLOCK--
Re: dconfig for GNUbies
Resent-Date: 9 Nov 1998 18:34:40 - Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] Date: Mon, 9 Nov 1998 13:33:28 -0500 (EST) From: Daniel R. Allen [EMAIL PROTECTED] Reply-To: Daniel R. Allen [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: Kudt1D.A._RF._WzR2@murphy Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org archive/latest/24790 X-Loop: debian-user@lists.debian.org Precedence: list Resent-Sender: [EMAIL PROTECTED] Hi there, This is my first debian install. I am installing from the official debian CD set, version 1.3.1 (necessary for compatibility reasons). I have read the dselect man page, /usr/doc/debian/FAQ, the online debian installation guide (including the dselect first-time user's guide), the help pages inside dselect, and the list archives via the web. None of these have answered my questions regarding the following. Can somebody with a clue help me out? 1) I chose 'access method CD-ROM' and it properly found the 'main' and 'contrib' packages and binaries. Where do I find the 'local' packages? It says, this directory is named 'local/binary' on the distribution site. It does not seem to be available on the CD-ROM, and I couldn't find it traversing ftp.debian.org. Am I missing packages without it, and what is a standard place to find it? 2) I've installed the distribution; everything seems to work. Now I've tried updating my system from libc5 to libc6 in order to install mSQL. So far, dselect has required that I un-install libc5 in order to install libc6. Which it won't let happen because it would break a number of packages. Now what should I do? Can I install both? How? 3) I found an updated version of gpm, and tried downloading it from a debian distribution site. I like how lynx automatically started up dselect (or dpkg?) when it recognized the package. That was neat. But when I told it to try and install the package, it also wanted libc6. Leaving a broken copy of gpm. So I uninstalled gpm. Now I have NO gpm and no clear way to re-install the old version. In dselect, can I 'downgrade' to the old version on the CD? Thanks for your help. -Daniel -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null Well if you have debian working I suggest you mount all of the debian CD-disks. mount -r -t iso9660 /dev/hdc /mnt (hdc or wherevere your cd-rom is at) then cd /mnt then find . -name .* /name-of-the-debian-cd-rom.list (this will write out all the files (with their paths) out to the filename you called it in the root) Do this with all the debian cd-roms -- you should wind up with a number of debian.list files in your root. Then cd / then find / -name the-thing-you-are-looking-for -print | less you should be able to locate anything on your cd-roms easily that way. Works for me. also study dpkg --help carefully :it can help you locate what .deb package has the file you are looking for. joeh
where is less ?
I am a partisan of less -- the bidirectional more. Where is it on the debian system? How do I install it? Thanks in advance. joeh
Re: X and keyboard layouts
Hello, I use the DVORAK, and finally decided to get a hardware DVORAK keyboard to get rid of all the problems from myriad computers trying to give me a hard time about dvorak. So now all the machines think they are talking to a qwerty board and my config problems are a thing of the past. But I ought to get one of these OMNIKEY 101 boards for work too! Just a comment -- saw that your are using the dvorak board. Too bad it never caught on (statistically). joeh