Linux-Misc Digest #195, Volume #27               Thu, 22 Feb 01 12:13:02 EST

Contents:
  Re: renaming 500+ files based on contents of an existing text file (Lee Allen)
  Re: Another great Linux Hard Drive Mystery (H Dziardziel)
  Re: Synchronizing time between linux boxes (Catalin Marinas)
  Re: AOL + Linux (Claus Atzenbeck)
  Re:  P.S.: Re: writing to tape (DLT 8000) ([EMAIL PROTECTED])
  Display Projector ("Bruce L. Bauer")
  Re: How to make Linux slim? (Dustin Puryear)
  Re: AOL + Linux ("Jeff Susanj")
  Re: Staroffice 5.2 memory usage (Grant Edwards)
  Re: IMAP reader for Linux (Grant Edwards)
  Re: bash scripting tips needed ("Werner Fangmeier")
  Re: MS to Enforce Registration - or Else (Donovan Rebbechi)
  Re: inetd/xinetd (Robert Lynch)
  Re: using --exclude in rsync (Robert Lynch)
  how to print man pages in good quality (bv)
  ssl email client? ("jpk")
  linux on SGI indigo2 (Marian Heddesheimer)
  Re: how to print man pages in good quality (Bob Tennent)

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

From: [EMAIL PROTECTED] (Lee Allen)
Subject: Re: renaming 500+ files based on contents of an existing text file
Reply-To: [EMAIL PROTECTED]
Date: Thu, 22 Feb 2001 15:05:41 GMT

The basic code you need to process records from a file looks like
this:

while read RECORD; do
        echo "Here is the record:$RECORD"
done < textfile

Replace 'textfile' with the name of the real file,
and replace the 'echo' line with commands you want to perform.
Multiple lines can be put inside the loop.

If you do it like this you will need some code to parse $RECORD into
multiple fields.

Or, this may work:

while read FIELD1 FIELD2 FIELD3; do
        echo "Here is the record: 1=$FIELD1 2=$FIELD2 3=$FIELD3
done < textfile

In this case the read separates the record into fields.
This may make it easier to write the code inside the loop.
You need to test this, though, to see if those funny characters in 
the filename interfere with the field parsing.
If they do, use awk to parse the file.

-Lee Allen

On Wed, 21 Feb 2001 03:06:49 -0500, Glitch <[EMAIL PROTECTED]> wrote:

>hello,
>
>this is more of a curiousity question, although it would be nice if it
>would be possible.
>
>I have a collection of viruses.  I use f-prot to scan them in order to
>find out their correct names. I then rename the existing zip archive to
>that of the name of the virus f-prot siad it was infected with(which is
>the virus itself).
>
>Problem is i have about 1000 viruses and doing it by hand is tedious.
>
>Is it possible to make a shell script to read the output of the text
>file generated by f-prot and then search for the correct zip archive on
>the hard drive and have the shell script automatically rename teh zip
>file to the name of the virus f-prot found it be infected by?
>
>Here is what the output of f-prot looks like:
>
>C:\ZIP2\VIRII\UNIXLO~1.SH  Infection: Unix/LoveLetter
>C:\ZIP2\VIRII\VBSFRE~1.VBS  Infection: VBS/FreeLinks.A
>C:\ZIP2\VIRII\NEWVIRII\ASCIIV.ZIP->VIRII/GLITCH/ASCIIV.COM  Infection:
>Ascii.613.unknown?
>C:\ZIP2\VIRII\NEWVIRII\CEREBR~1.ZIP->cerebrus.zip->CEREBRUS.EXE 
>Infection: W95/Cerebrus.1482
>
>
>I'd have the shell script find anything after "Infection:" and make that
>the filename for the file listed on that same line.
>
>Cerebrus.zip would be renamed to Cerebus.1482.zip
>
>Is this possible and difficult to accomplish?
>This would be a good project i can learn how to do shell scripting on if
>it isnt too difficult.
>
>Thanks


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

From: [EMAIL PROTECTED] (H Dziardziel)
Subject: Re: Another great Linux Hard Drive Mystery
Date: Thu, 22 Feb 2001 15:16:48 GMT

On Wed, 21 Feb 2001 22:57:47 -0500, mike <[EMAIL PROTECTED]> wrote:

>Hi,
>    I have Redhat 5.1 installed on an old Fujitsu 428mb hard drive
>on a 486 DX2-66 Gateway with 16mb ram. It works well. I decided
>to try to upgrade it with Redhat 6.2. When I try to do the upgrade,
>the installation program says that it can't find the hard drive. I
>tried Redhat 6.1 and it says there are no Linux partitions on the
>drive. I tried to do a clean install of either and it comes up with
>an error indicating that it can't recognize the drive. Since
>nothing actually got installed in this whole process, my
>Redhat 5.1 still boots and works fine.
>
>                                                        Thanks
>                                                                Mike
>
My 486dx2-66 HP with 20mb ram exhibited flakey "sticky" RH5.1
partitions so I concluded the fdisk in that version does something
different.  And I recall it was important to flush the fdisk buffers
with a write and immediate reboot at each partition change.  The
partitions were logicals in an extended so that may have been another
factor.  It did take some playing with to finally settle all.
Try the original fdisk that created the partitions or a good 3rd party
manager, never dos or win of course.   

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

From: Catalin Marinas <[EMAIL PROTECTED]>
Subject: Re: Synchronizing time between linux boxes
Date: 22 Feb 2001 15:16:01 +0000

Try NTP:

http://www.cis.udel.edu/~ntp

>From "rpm -qi ntp":

The Network Time Protocol (NTP) is used to synchronize a computer's
time with another reference time source.  The ntp package contains
utilities and daemons which will synchronize your computer's time to
Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
The ntp package includes ntpdate (a program for retrieving the date
and time from remote machines via a network) and ntpd (a daemon which
continuously adjusts system time).

Catalin.


"chris lamb" <[EMAIL PROTECTED]> writes:

> Can anyone advise me of the best way to synchronize the time to a time
> server in Linux. I have 4 machines networked and wish to sync them to a
> single server.
> 
> I have looked around briefly but it does not appear to be documented in any
> of the books I have.
> 
> Best wishes
> 
> chris
> 
> 

-- 
Catalin Marinas, Red Hat UK Ltd.
Embedded Software Engineer
email: [EMAIL PROTECTED]
phone: +44 1223 271012

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

From: Claus Atzenbeck <[EMAIL PROTECTED]>
Subject: Re: AOL + Linux
Date: Thu, 22 Feb 2001 16:20:00 +0100

Gerald Willmann wrote on Thu, 22 Feb 2001 15:35:22 +0100:

> I heard there is an alpha or beta of their software out - guess you
> shouldn't ask work well but work at all :)

To be honest, I don't want to use AOL's software on Linux. I just want to 
use simple "ifup" and "ifdown" like I do with my ISP (T-Online) right now. 
For me this is easier and much more useful.

> Can't you use dsl b/c they keep the flatrate for dsl, don't they?

I would love to use DSL. Yep, there still is a flatrate. But I was asking 
German Telekom when I would be able to get DSL, and they said "never". I've 
been told that my house is too far away from the DSL main station (or 
whatever it is).

That is why I am looking for a good ISP with flatrate which I can use with 
Linux.

Claus.

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

From: [EMAIL PROTECTED]
Subject: Re:  P.S.: Re: writing to tape (DLT 8000)
Date: 22 Feb 2001 14:32:42 GMT

> Jean-David Beyer wrote (in part):
> > 
> > Christoph Kukulies wrote (in part):
...

--


==================================
Posted via http://nodevice.com
Linux Programmer's Site

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

From: "Bruce L. Bauer" <[EMAIL PROTECTED]>
Subject: Display Projector
Date: Thu, 22 Feb 2001 09:46:28 -0600

I am running GNOME/Redhat 7 on a laptop.  Recently tried a display
projector.  Projector was same resolution as my screen and displayed the
boot sequence & messages.  When GNOME started, the screen when blue
(no-not the W.. blue screen) on the local screen and display.   Screen
failed to respond after this.   Need to know what kind of problem I am
looking at and potential solutions.  Turning the window off is not an
option as that is where what I want to display is.



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

From: [EMAIL PROTECTED] (Dustin Puryear)
Subject: Re: How to make Linux slim?
Date: 22 Feb 2001 15:36:44 GMT
Reply-To: [EMAIL PROTECTED]

On Thu, 22 Feb 2001 12:25:42 +0100, Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>> Would apache at a cache work better in this memory configuration?
>
>No. Well .. not unless you set the in-memory cache to near zero, which
>you can do for squid too (hot cache).
>
>Your problem is trying to run a cache server on a system with no memory.
>That means it must use disk, and thus will be slow. Even if it uses
>disk exclusively for the cache, it'll still be swapping in and out.

Yes. For a network of four workstations this may not be too bad. A swapping
machine is still going to be faster than a slow Internet connection. However,
using the system interactively may be painfull. The BEST solution is to add
some RAM though.

Regards, Dustin

-- 
Dustin Puryear <[EMAIL PROTECTED]>
Integrate Linux Solutions into Your Windows Network
- http://www.prima-tech.com/integrate-linux


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

From: "Jeff Susanj" <[EMAIL PROTECTED]>
Subject: Re: AOL + Linux
Date: Thu, 22 Feb 2001 15:10:25 GMT

AOL is Linux hostile.  They only make AOL for Windows 9xx and Macintosh.
Even Windows NT is left out.  I have to use an older version of AOL for
windows 3.1 on NT.  It may be possible to run AOL using Wine but I haven't
tried it myself.

Jeff S.


"Claus Atzenbeck" <[EMAIL PROTECTED]> wrote in message
news:972tao$768$00$[EMAIL PROTECTED]...
> I found a group alt.aol-sucks, but I don't think that this is the right
one
> to get a good answer for my question.
>
> My ISP (T-Online, Germany) will stop its flatrate. My contract will end in
> about 3 months. As far as I know, AOL is the only one which is left
> offering a flatrate for ISDN in Germany. This is the reason why I think
> about switching to AOL.
>
> Does AOL work well with Linux? (I have Mandrake 7.2)
> Any experiences?
>
> Claus.



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

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: Staroffice 5.2 memory usage
Date: Thu, 22 Feb 2001 15:43:47 GMT

In article <881l6.793$[EMAIL PROTECTED]>, Harlan Grove 
wrote:

>StarCalc is a pig. It'll use every last bit of real and virtual
>memory, bring your system to a grinding halt and basically be
>the bane of your existence. Other than that it's a fine
>application.
>
>I haven't used the other apps to any great extent. If Deja
>hadn't died I could have pointed you to some threads in
>comp.apps.spreadsheets that compared various linux
>spreadsheets. For spreadsheets at least, Applix Spreadsheet is
>reliable, not too piggish in resource usage and close to full
>featured. For absolute reliability and modest resource usage,
>use AIS's Xess. 

Wingz was always a solid performer for me -- even on 486
machines.  Having the menubar in a separate window was a bit
annoying.  Haven't checked the status lately, but the older
version of Wings (1.4?) used to be free (as in beer).

-- 
Grant Edwards                   grante             Yow!  I feel better about
                                  at               world problems now!
                               visi.com            

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

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: IMAP reader for Linux
Date: Thu, 22 Feb 2001 15:45:09 GMT

In article <3a94a014$[EMAIL PROTECTED]>, John wrote:

>I am trying to find a good IMAP e-mail program for use with
>Linux.
>
>It needs to be able to read mail from multiple nested folders
>(directories) on the host system.

Mutt.  I use it every day to read IMAP mailboxes -- rarely with
nested folders, but the last time I tried it it seemed to work
fine.

-- 
Grant Edwards                   grante             Yow!  Yow! STYROFOAM...
                                  at               
                               visi.com            

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

From: "Werner Fangmeier" <[EMAIL PROTECTED]>
Subject: Re: bash scripting tips needed
Date: Thu, 22 Feb 2001 16:57:32 +0100

I'm not really sure what you mean.
Aliases are a means for abbreviating commands, so they are only honoured
when appearing on the start of a commad line.
To provide shorter names for directories, it's more likely to use
environment variables:
    export BIGDIRPATH='/usr/local/src/big/long/pathname'
Then, after typing e.g.
    vi $BIGDIRPATH/
hitting TAB will also let you select files from this folder.
(But to see files in a directoy, I usually use the "ls" command :-))
As you see, the main problem is asking the right question :-)
If you take the time to provide a reasonable question, you will notice, that
90 percent of a problem is solvable by simply bringing the problem in a
clear and comprehensive form.

<sherror> schrieb im Newsbeitrag news:[EMAIL PROTECTED]...
>
> Need some tips on making some scripts.
> Is it possible to parse an alias like a command?
> Say you have an alias, using bash, that is something like:
>
> alias bigdirpath='/usr/local/src/big/long/pathname'
>
> And say that directory has a bunch of files in it.
> How could I parse the alias so I could use the TAB key afterwards
> to see the files in that directory?
> I'm sure there is a billion ways to do this, but I'm just learning and in
need of some tips. Or maybe there is a totally different way to do this,
like making a executable script?
>
> ==================================
> Posted via http://nodevice.com
> Linux Programmer's Site



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

From: [EMAIL PROTECTED] (Donovan Rebbechi)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: 22 Feb 2001 16:08:00 GMT

On Wed, 21 Feb 2001 23:14:47 -0500, Aaron Kulkis wrote:

>Really?
>
>1. So, what you're saying, is that, after you die, you intend to pass
>on absolutely NOTHING of value to your children and/or grandchildren?

I doubt I'm likely to have anything over the threshold for the inheritance
tax in the US. But suppose I was taxed at 100%. That would not stop me
working while I was alive, no. I'm not saying they should tax at that
rate though.

>2.  Death Taxes are the LEADING cause of failure for businesses 
>that last more than 10 years....not to mention an INCREDIBLE burden
>upon farming families.

Must be very well-to-do "farming families". What's the threshold again ?
IIRC you don't pay a cent unless you're a millionaire. 

"Leading cause of failure for businesses that last more than 10 
years" ... ? Sounds like an awfully contrived statistic. I'm not
clear as to how you isolate the tax as a variable BTW (In particular,
how do you know that the business didn't fail because the heirs ran
it into the ground?)

>Fuck that all your socialist, bureacrats-can-do-no-wrong bullshit.
>
>We give enough money to the public education system in this
>country to properly educate 5x the current number of students.

Sure, you could probably cut costs by 80% or so by reducing 
teachers salaries to say about $5000-. 

>> have something which is of greater resemblence to a meritocracy. The
>> rich kids have an advantage, but not an exclusive lock.
>
>Welcome to fucking reality.  Now, try dealing with it, rather than
>pretending that it magic-fairy-dust is all that's needed to cure it.

I never did claim that "magic fairy dust" will cure anything. The fact
that it's not easy to "cure" does not mean that we should not try.

-- 
Donovan Rebbechi * http://pegasus.rutgers.edu/~elflord/ * 
elflord at panix dot com

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

From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: inetd/xinetd
Date: Thu, 22 Feb 2001 08:19:45 -0800

Gaurav Navlakha wrote:
> 
> Hello everyone,
> 
> I'm trying to run the telnet daemon on Mandrake 7.x (I'm sorry I don't
> recall which version it was, but I'm sure it was one of the latest ones
> currently available)
> 
> I have both of the following files: "/etc/init.d/inet" and
> "/etc/init.d/xinetd"
> 
> When I boot up the system, only xinetd is running, not inetd (from ps
> -ealf |grep inet). I know that inet should use the hosts.allow hosts.deny
> files to set up the permissions, but if I'm not wrong, xinetd does not
> look at these files.
> 
> I also have the file 'telnet' that I generated using
> /usr/sbin/inetdconvert, in /etc/xinetd.d/. It looks like this:
> 
> # Converted by inetdconvert
> service telnet
> {
>         socket_type             = stream
>         protocol                = tcp
>         wait                    = no
>         user                    = root
>         server                  = /usr/sbin/tcpd
>         server_args             = in.telnetd
>         disable                 = yes
> }
> 
> With xinetd running, and when I try to telnet to my machine, I get:
> "telnet: Unable to connect to remote host: Connection refused"
> 
> Can anyone think of a possible reason for this?
> 
> Your help will be truly appreciated.
> 
> Thanks,
> Gaurav.

Under RedHat 7.0, you can use "chkconfig" to enable this service:

/sbin/chkconfig --level 2345 telnet on

This will change disable from "yes" to "no".

My xinetd does check hosts.allow/deny.

HTH. Bob L.
-- 
Robert Lynch-Berkeley CA USA: [EMAIL PROTECTED] <== NOTE:
**New address! Please CHANGE your addressbook listing.***

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

From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: using --exclude in rsync
Date: Thu, 22 Feb 2001 08:28:29 -0800

[EMAIL PROTECTED] wrote:
> 
> I thought I had this working, but apparently not.  The man page
> just doesn't make any sense, and the examples aren't what I am
> trying to do.
> 
> What I want to do is exclude a whole tree from data being transferred
> by rsync (client is getting data from the server).  Can anyone give
> a pattern for exclude to block a whole tree?  As an example I want
> to exclude a tree named "abc/xyz" relative to the directory which is
> the target.
> 
> --
> -----------------------------------------------------------------
> | Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
> | [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
> -----------------------------------------------------------------

I've been using this to backup a server over ssh (executed in /
directory):

rsync -ravze ssh --exclude='lost+found' --delete --delete-after\
 /bin /boot /dev /etc /home /lib \
 /opt /root /sbin /spare /usr /var\
 ives:/fw_bak

HTH. Bob L.
-- 
Robert Lynch-Berkeley CA USA: [EMAIL PROTECTED] <== NOTE:
**New address! Please CHANGE your addressbook listing.***

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

From: bv <[EMAIL PROTECTED]>
Subject: how to print man pages in good quality
Date: Thu, 22 Feb 2001 17:40:49 +0100

Hi,

I tried to print them from the KDE help, but it looks ugly.

Can anyone tell me how to print man pages in really good quality?

-- 
Bastian Voigt
<[EMAIL PROTECTED]>

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

From: "jpk" <[EMAIL PROTECTED]>
Subject: ssl email client?
Date: Thu, 22 Feb 2001 11:33:42 -0500

Does anyone know of an ssl capable email client for Linux?  I'm trying to
wean my system's users off of cleartext.

Thanks
jpk

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

From: [EMAIL PROTECTED] (Marian Heddesheimer)
Subject: linux on SGI indigo2
Date: Thu, 22 Feb 2001 16:47:58 GMT

Hi,

my colleague has bought two Indigo2 SiliconGraphics machines and he
wants to use them as webservers with linux.

Unfortunately he an I have no idea how to manage the installation for
such a machine. We have already found the linux port for Mips
processors but we do not know how to boot linux from floppy drive.

OTOH it could be possible to run the apache server and necessary
modules (php and mySQL) on the Irix OS that is already installed, but
I am not sure if it is possible to compile apache on Irix 6.2.

Any help is appreciated

Marian

===================================================================
mailto:[EMAIL PROTECTED]            programmer and book author
http://www.heddesheimer.de               online-training
===================================================================

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

From: [EMAIL PROTECTED] (Bob Tennent)
Subject: Re: how to print man pages in good quality
Date: 22 Feb 2001 16:46:43 GMT
Reply-To: [EMAIL PROTECTED]

On Thu, 22 Feb 2001 17:40:49 +0100, bv wrote:
 >
 >Can anyone tell me how to print man pages in really good quality?

man -t <command> | lpr

Bob T.

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


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to