Linux-Hardware Digest #755, Volume #14           Thu, 10 May 01 23:13:06 EDT

Contents:
  Re: Voodoo II (SammyTheSnake)
  Re: Will this system support linux? (SammyTheSnake)
  Re: SCSI-Reset on live System (Matthias Andree)
  PCMCIA / PS2 IRQ12 Conflict (2.4 kernel) ("David Hawkins")
  Re: Will this system support linux? ("Dave")
  Re: Will this system support linux? ("Dave")
  Re: Will this system support linux? ("Dave")
  Re: Buffalo LPC4-TX pcmcia nic (Dances With Crows)
  Re: Unresolved Symbol error configuring PCTel modem (cicrano)
  Re: Why is Sun selling Linux-based PC Server Applicances on www.sun.com   (Cobalt 
servers)? ("Ron Johnson")
  Re: promise ultra66 problems ("Jason Luther")
  What is sendmail? ("Lamar Thomas")
  Re: VIA 686B bug fix (Dances With Crows)
  Re: SCSI-Reset on live System (Dances With Crows)
  Hardware problems: Mandrake 7.0 tulip: eth0: MMIO Region (0X0@0X0) Unavailable, 
aborting (Eric)
  Re: Backing up Windows on Linux (Michael Meissner)

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

From: [EMAIL PROTECTED] (SammyTheSnake)
Subject: Re: Voodoo II
Date: Fri, 11 May 2001 00:37:40 +0100

In article <[EMAIL PROTECTED]>, Jan-Erik Bullett wrote:
>Hello happy linux people!
>
>Has anyone out there managed to get a voodoo II card to run under
>windows? I seem to have got it detecting and even managed to run
>tuxcart, but it was dead slow and no options to configure. If anyone
>could part with any useful information, I'd be well grateful

err, if by (swallow, try to get it out without swearing) 'windows' you mean
you want your 3d app to run in a window under X, you're out of luck. Voodoo
II doesn't support windowed mode.

OTOH, I heard mutterings about some hackery that would essentially cut&paste
from the voodoo's framebuffer into a window, albeit at about 1/3 the
peformance...

anyone got any leads on that?

Cheers & God bless
SammyTheSnake
-- 
Sam.Penny @ Ntlworld.com                  | Looking for a computer related
Linux, Hardware & Juggling specialist :-) | job, if you can help, e-mail me :)
Wheels: bike, 'ickle bike, and unicycle.  | /o \/ Working on 5 ball 1/2 shower
Boxen: K6-266@300, dual Celery500 & Nx486 | \__/\  & some 6 / 7 ball exercises

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

From: [EMAIL PROTECTED] (SammyTheSnake)
Subject: Re: Will this system support linux?
Date: Fri, 11 May 2001 00:41:56 +0100

In article <[EMAIL PROTECTED]>, Eric P. McCoy wrote:
>"Ed" <[EMAIL PROTECTED]> writes:
>I've got a base system on a 50MB RAID0 partition.

50MB RAID?!

how's that, then?

Cheers & God bless
SammyTheSnake
-- 
Sam.Penny @ Ntlworld.com                  | Looking for a computer related
Linux, Hardware & Juggling specialist :-) | job, if you can help, e-mail me :)
Wheels: bike, 'ickle bike, and unicycle.  | /o \/ Working on 5 ball 1/2 shower
Boxen: K6-266@300, dual Celery500 & Nx486 | \__/\  & some 6 / 7 ball exercises

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

From: Matthias Andree <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.misc,de.comp.os.unix.linux.hardware,de.comp.os.unix.linux.misc
Subject: Re: SCSI-Reset on live System
Date: 11 May 2001 03:03:34 +0200

(auch gemailt, Herr Lehmann scheint inflationäre Müllverbreitung zu
bevorzugen)

"Lutz Lehmann" <[EMAIL PROTECTED]> writes:

> Hi...
> 
> I've got an Adaptec 2940UW in my system. I'm running a 2.18 kernel and need
> to send the controller a signal to rescan the SCSI bus for devices (scanner
> is only connected when needed). Since I've got swap on a SCSI disk and can't
> turn off the swap space, I cannot unload the module.
> 
> Someone PLEASE help

Halt' Dich erstmal an die Gepflogenheiten des Usenet und crossposte
nicht hierarchieübergreifend in zu viele und die falschen Newsgroups.

Dann benutz Google und such nach rescan und scsi. 

Dann probier mal man swapoff.

Wenn Du dann immer noch keinen Clue hast, kauf Dir einen, wenn Du den
nicht kaufen kannst, verkauf' Deinen Rechner und such Dir 'ne andere
Beschäftigung.

-- 
Matthias Andree

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

From: "David Hawkins" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable,comp.os.linux.setup,alt.os.linux
Subject: PCMCIA / PS2 IRQ12 Conflict (2.4 kernel)
Date: Thu, 10 May 2001 18:35:46 -0700

Hi,

I'd like some suggestions as to the cause and fix of a problem I am
having with Linux 2.4 freezing up on me. My system is

- Winbook XL
- Red Hat 7.1 (2.4.2-2 kernel)

The mouse is a PS/2 device (the Winbook has a keyboard 'nipple'
and touchpad), and this is what Win95 sees it as. When installing RH, it
didn't recognize the mouse, so I used the text install. On first boot, the
mouse was recognized by the hardware detection and assigned as
a generic ps/2 mouse. The first time I booted into X, the system froze.

Booting next time and staying in text mode, I tried gpm and mev,
the laptop froze both times. (/dev/mouse -> /dev/psaux so thats ok)

Looking under /proc/interrupts I see that the PS/2 interrupt is being
shared with the TI PCI1131 PCMCIA cardbus controller.
Several documents indicate the the PS/2 must use IRQ12, so the
1131 IRQ may need to be changed. However, looking at
/etc/pcmcia/config.opts lists IRQ12 as being excluded - so how
come the controller claimed it? (perhaps the exclude only applies
to devices in the PCMCIA slots...?). Under Win95 the 1131 uses
IRQ15.

Thinking that maybe the interrupts from the TI1131 were the
cause of the problem I performed:

/etc/init.d/pcmcia stop

This removed PCMCIA services and /proc/interrupts shows only
the PS/2 mouse on IRQ12. However, booting into X still freezes and
so does mev. Actually, I just ran mev (with PCMCIA
services off), and could type text, however, as soon as I touched the
mouse, the system  freezes.

This system has had RH 6.2 working fine in the past, and booting
into Win95 shows all is well there.

dmesg and /var/log/messages don't contain any interesting info on
why the system may be crashing. Although there is the comment
that the serial driver is 5.02 and that SHARE_IRQ is enabled.

I deleted /etc/sysconfig/mouse and ran mouseconfig ... and receved
a segmentation fault while probing for the mouse, and then the
system was frozen. Hmmm, is there a bug here?
(or perhaps the missing file is the cause of that)
I had to run 'mouseconfig --noprobe' to regenerate
the /etc/sysconfig/mouse file. I selected the Generic PS/2
mouse, as that looked to be the only correct one. I did
try the Microsoft Intellimouse (PS/2), however when the
system was booted, I no longer had use of the keyboard
and had to use the boot CD to rescue the system.

Anyway, some suggestions would be helpful.
If no one can think of a cause for this problem,
then I'll have a look at compiling a newer
version of the kernel.

Please HELP!

Regards,
Dave Hawkins
Caltech
[EMAIL PROTECTED]




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

From: "Dave" <[EMAIL PROTECTED]>
Subject: Re: Will this system support linux?
Date: Thu, 10 May 2001 18:40:36 -0700


"The Snowman" <[EMAIL PROTECTED]> wrote in message
news:P0yK6.1061$[EMAIL PROTECTED]...
> <snip>
>
> > USD 900!!!! WTF!  Why don't you just order from North America somewhere.
> > With shipping included you'd still save 50%.  And if after it arrived,
it
> > didn't work, you could always order another one, and break even.  2/2
> > disfunctional CPUs is doubtful.
> >
> >
> I agree.  WTF??????? 1ghz athlons around here run just a little under 350
> cdn, which is nowhere neat 900us.

$250 CAD where I live.  And that's a Tbird Socket A with 266MHz front-side
bus capability.  So he's paying like 6 times what they are worth here.  He'd
be better off buying 6 processors from the States, or Canada and becoming a
small-time reseller.  He'd make a fortune!  And there'd be no worries of the
processors not working, since he'd have 6 of them.



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

From: "Dave" <[EMAIL PROTECTED]>
Subject: Re: Will this system support linux?
Date: Thu, 10 May 2001 18:46:56 -0700

Until recently HP had no support for non-Postscript printers, but they are
soon to be (they have a while to go) the most Linux-supported printer
company out there (eventually).

Your printer supposedly has photo printing support:
http://hpinkjet.sourceforge.net/license.php

"Justin Mahn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Just make sure your printer is Linux-friendly.  My beautiful hp deskjet
932c
> doesn't seem to have proper linux drivers to get photo printing working.
I
> have to serve and old epson ap-3250 from my linux box and serve the HP
from
> a *insert evil os here* machine.
>
> Damn that AP3250 is noisy.
>
>
> "Ronald Cole" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > "Ed" <[EMAIL PROTECTED]> writes:
> > > Amptron DX-6900 AT style motherboard with 7 16-bit ISA slots.
> > > The processor is an Intel 486 DX-2 66Mhz CPU.
> > > The video card is a Diamond Stealth 32 VLB card with 2MB Video RAM.
> > > The main storage is a 500MB Quantum Fireball TM 1700A 3 1/2" IDE hard
> drive.
> > > BIOS doesn't see the full 1.7 gig.
> > > Audio is a Reveal SC200 Sound Blaster compatible ISA soundcard.
> > >  Hitachi 8X IDE CD-ROM (model CDR-7930)
> > > The ISA controller card supports the IDE channel, floppy drive
channel,
> > > Printer port and two serial ports(1/DB9 and 1/DB25).
> > > US Robotics Sportser 33.6 Data/Fax External Modem.
> > >  There is 24MB of memory.
> >
> > They make great DHCP and print servers.  Just don't run X on them.
> >
> > --
> > Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412
> > Ronald Cole <[EMAIL PROTECTED]>      Phone: (760) 499-9142
> > President, CEO                             Fax: (760) 499-9152
> > My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084  4A88 8851 E6C8 69E3 B00B
>
>



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

From: "Dave" <[EMAIL PROTECTED]>
Subject: Re: Will this system support linux?
Date: Thu, 10 May 2001 18:54:39 -0700

Okay, it doesn't work perfectly, but you can get 600x600.  Not great for
photos in my opinion.

http://www.linuxprinting.org/show_printer.cgi?recnum=108320

"Dave" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Until recently HP had no support for non-Postscript printers, but they are
> soon to be (they have a while to go) the most Linux-supported printer
> company out there (eventually).
>
> Your printer supposedly has photo printing support:
> http://hpinkjet.sourceforge.net/license.php
>
> "Justin Mahn" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Just make sure your printer is Linux-friendly.  My beautiful hp deskjet
> 932c
> > doesn't seem to have proper linux drivers to get photo printing working.
> I
> > have to serve and old epson ap-3250 from my linux box and serve the HP
> from
> > a *insert evil os here* machine.
> >
> > Damn that AP3250 is noisy.
> >
> >
> > "Ronald Cole" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > "Ed" <[EMAIL PROTECTED]> writes:
> > > > Amptron DX-6900 AT style motherboard with 7 16-bit ISA slots.
> > > > The processor is an Intel 486 DX-2 66Mhz CPU.
> > > > The video card is a Diamond Stealth 32 VLB card with 2MB Video RAM.
> > > > The main storage is a 500MB Quantum Fireball TM 1700A 3 1/2" IDE
hard
> > drive.
> > > > BIOS doesn't see the full 1.7 gig.
> > > > Audio is a Reveal SC200 Sound Blaster compatible ISA soundcard.
> > > >  Hitachi 8X IDE CD-ROM (model CDR-7930)
> > > > The ISA controller card supports the IDE channel, floppy drive
> channel,
> > > > Printer port and two serial ports(1/DB9 and 1/DB25).
> > > > US Robotics Sportser 33.6 Data/Fax External Modem.
> > > >  There is 24MB of memory.
> > >
> > > They make great DHCP and print servers.  Just don't run X on them.
> > >
> > > --
> > > Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412
> > > Ronald Cole <[EMAIL PROTECTED]>      Phone: (760) 499-9142
> > > President, CEO                             Fax: (760) 499-9152
> > > My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084  4A88 8851 E6C8 69E3 B00B
> >
> >
>
>



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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Buffalo LPC4-TX pcmcia nic
Reply-To: [EMAIL PROTECTED]
Date: 11 May 2001 02:12:52 GMT

On Thu, 10 May 2001 10:48:12 +0200, Nick De Roeck staggered into the
Black Sun and said:
>I'm trying to get my pcmcia nic working on RedHat 6.2 (Buffalo LPC4-TX
>pcmcia bought in Japan). I can't find anything about this specific card
>on pcmcia-cs, but in an (foolish ;-) attempt to make it work I followed
>the procedure for it's predecessor (LPC3-TX) for which I had to
>use/configure the pcnet_cs module (which in it's turn seems to load the
>8390 module).
>
>Inserting the card results in the appearance of an interface 'eth0'
>reported by ifconfig. But after giving it a correct ip and the like it
>can't make it work (no network traffic possible, the led's on the card
>stay dead, ...).  The /var/log/messages reports the succesfull
>detection of a ne2000 compatible card (eth0: ne200 compatible, irq 5,
>0x300).
> 
>Does anybody has any experience with this card ? Does anyboy maybe know
>what kind of chipset sits inside ? Or can somebody maybe point me out
>how I can discover which chipset is used in this card ?

Does /var/log/messages say something like "Tx timed out, cable problem?"
when you try pinging things?  If this is so, then you have a problem
which was reported some time ago for a few D-Link cards and the NetGear
410TX.  That problem can be most easily fixed by upgrading your
pcmcia-cs to the newest version; I think they're up to 3.1.25 now.

Since the link light is dead, have you tried a known good Cat5 cable?
Link detection is a pretty lowlevel thing; if the card registers as ne2k
and such, you have a good cable, and you still get no link, I'd suspect
a hardware problem with the card.  I suppose you could also try *cough*
Windoze to rule out a software configuration problem, if you happen to
have such a thing around....

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com     /   Workin' in a code mine, whoops!
=============================/    I hit a seg fault....

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

From: cicrano <[EMAIL PROTECTED]>
Subject: Re: Unresolved Symbol error configuring PCTel modem
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Date: Thu, 10 May 2001 20:14:22 -0300

Hi Dean,

I have checked some things, and I think that the error
should be on the PCTel driver AND some bug on the
2.2.17 kernel too. That are the tried combinations and
the result:

Kernel   Driver   Result
2.2.14    old       ok
2.2.14    new      fail
2.2.17    old      fail
2.2.17    new      fail

The shows that main symbol are missing. If they really
was missing on the libraries, nothing on Linux was
working.
There are another thing: the error only occour when I
change the value of HAL on Makefiles to HAL_VIA686A
(that are my motherboard). Problably the error are a
missing 'include <linux/kernel.h>' on the file
via686ahal.a, but I don't access to the source code.

[]'s Felipe


Dean Thompson wrote:

> 
> Hi!,
> 
> > I'm trying to configure my PCTel modem on Mandrake 7.2
> > and I'm having
> > too much trouble with that. It worked
> > before on a Conectiva Linux 5.0 (2.2.14 kernel I
> > guess). I've followed
(...)
-- 
Felipe Machado Cardoso
Lotus Notes & Linux consult
Gaia Informatica: http://www.gaia.inf.br


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

From: "Ron Johnson" <[EMAIL PROTECTED]>
Crossposted-To: comp.sys.sun.hardware,comp.sys.sun.admin,comp.unix.solaris
Subject: Re: Why is Sun selling Linux-based PC Server Applicances on www.sun.com   
(Cobalt servers)?
Date: Thu, 10 May 2001 19:26:04 -0700

> Anyway, I'm currently running OpenBSD on my SS10 and I'm pretty happy
> with that.

    don't tell me book sales are that bad... an ss10?...

:)

Ron!




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

From: "Jason Luther" <[EMAIL PROTECTED]>
Subject: Re: promise ultra66 problems
Date: Thu, 10 May 2001 19:35:22 -0700

"Rinaldi J. Montessi" <[EMAIL PROTECTED]> wrote in message
news:%QFK6.290$[EMAIL PROTECTED]...

> Jason Luther wrote:
[problems with 4 hard drives as masters on 2 Ultra66 Promise controllers]
> > I get this error any time I access /dev/hdi: "hdi: irq timeout:
status=0x50
> > { DriveReady SeekComplete }".

> Have you done a search of the kernel archive for that error?  I
> experienced it some with the 2.2.18 (patched) kernel and more so with
> the 2.2.19 (patched) kernel.  The 2.4.x kernels give APIC errors.
> Seems I can't win. :-)
>
> Not that any of this answers your question, and to my research there is
> no solution except to shut off the error message in the ide.c (?) file.
> You can grep the kernel /drivers directory for the exact error you're
> getting and determine which item it is.
>
> As an aside, I recall one message where Andre Hedrick (the linux ATA
> guy) made the observation that "at least now we know where it's
> failing".

Thanks for your reply.

I looked through the kernel source code, and it isn't really telling me
anything useful. I get an array of timeout messages, usually followed by an
error telling me that some operation failed. I don't mind the messages, I
mind the errors. :)

I tried a different set of kernel parameters, and I had some luck with this
one:
    append="ide2=0xeff0,0xefe6 ide3=0xefa8,0xefe2 ide4=0xef68,0xef66"
I just left off the ide5 parameter. I am in the process of building a RAID
now, and it seems to be going well, if not slowly. I still don't think this
is the right solution. :(

Also, only two of the drives are doing UDMA(66) according to dmesg. If I try
to enable DMA using hdparm ('hdparm -d1', 'hdpardm -d1 -X66', and
'hdpardm -d1 -X34'), the operation fails with "HDIO_SET_DMA failed:
Operation not permitted ... ide3(?): unexpected interrupt, status=0x58,
count=3".

Has anyone successfully used two Promise Ultra66 controllers in this setup?
I'm also open to recommendations on controller cards that are better
supported.

Thanks,
Jason



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

From: "Lamar Thomas" <lamart(NOSPAM)@home.com>
Crossposted-To: 
comp.os.linux,comp.os.linux.help,comp.os.linux.misc,comp.os.linux.networking
Subject: What is sendmail?
Date: Fri, 11 May 2001 02:40:32 GMT

I am new to Linux and I am coming from the "Windows" world.  We are thinking
about moving our "MS Exchange" e-mail server over to Linux and sendmail.
Right now with "Exchange 5.5" we can do POP3, SMTP and Web e-mail access.
Can we do any of this with sendmail?  If not, what do we need to make it
happen?  We well be running RedHat 7.1.  Thanks for any input.

Lamar




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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: VIA 686B bug fix
Reply-To: [EMAIL PROTECTED]
Date: 11 May 2001 02:50:04 GMT

On Tue, 8 May 2001 06:49:01 GMT, M. Buchenrieder staggered into the
Black Sun and said:
>[EMAIL PROTECTED] (Dances With Crows) writes:
>
>>On Mon, 7 May 2001 17:41:23 +0200, jay staggered into the Black Sun and
>>said:
>>>I have a MSI K7T Turbo motherboard with the VIA 686B Southbridge chip
>>>(KT-133A chipset). Is there a bug fix for Linux? If so how do I correct
>>>the problem. I'm currently using SuSE 7.0 but want to fix the problem
>>>before upgrading to 7.1.
>
>>?  Which bug were you referring to?  
>
>The broken design of the VIA 686B southbridge.
>
>[...]
>
>>This bug is entirely within the kernel; you can fix any problems you are
>>having with IDE DMA at any time without doing a full 7.0->7.1 upgrade.
>
>Nope. While there may have been bugs in the driver as well, the
>VIA southbridge itself is buggy and may cause severe data loss when
>transferring huge amounts of data from channel 1 to channel 2 on
>the IDE subsystem. You'll need to search for a BIOS update from
>the manufacturer of your board.

Argh, from reading Kernel Traffic, I thought the thing was a software
problem.  Found the BIOS update, installed it, haven't seen it since but
I also backed the kernel down to 2.2.18.  Trying 2.4.4 soon.  Thanks for
correcting my stupid mistake....

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com     /   Workin' in a code mine, whoops!
=============================/    I hit a seg fault....

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

From: [EMAIL PROTECTED] (Dances With Crows)
Crossposted-To: comp.os.linux.misc
Subject: Re: SCSI-Reset on live System
Reply-To: [EMAIL PROTECTED]
Date: 11 May 2001 02:50:03 GMT

On Thu, 10 May 2001 23:17:49 +0200, Lutz Lehmann staggered into the
Black Sun and said:
>I've got an Adaptec 2940UW in my system. I'm running a 2.18 kernel and
>need to send the controller a signal to rescan the SCSI bus for devices
>(scanner is only connected when needed). Since I've got swap on a SCSI
>disk and can't turn off the swap space, I cannot unload the module.
>
>Someone PLEASE help

Don't know if this will do it, but:
  echo "scsi add-single-device X Y Z W" > /proc/scsi/scsi
X is the controller, Y the bus, Z the SCSI ID, W the LUN.  Most likely
all these will be 0 except for Z, which is the SCSI ID of your scanner.
If they are not 0 (you have more than one SCSI card, or more than one
bus on your SCSI card, f'rinstance) then find out what they should be.
To disconnect the scanner, s/add/remove/ in the command line above.

Please note that unplugging cables from a running SCSI chain will
almost certainly derange the termination until everything's plugged back
in again.

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com     /   Workin' in a code mine, whoops!
=============================/    I hit a seg fault....

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

From: Eric <[EMAIL PROTECTED]>
Subject: Hardware problems: Mandrake 7.0 tulip: eth0: MMIO Region (0X0@0X0) 
Unavailable, aborting
Reply-To: [EMAIL PROTECTED]
Date: Fri, 11 May 2001 03:04:14 GMT

AMD 1000 MHZ
Gigabyte GA-7DX
Sound Blaster 128 PCI
VIA 686 AMD 761 Chipset
Adaptec AIC-7850 PCI SCSI Controller
ELSA GLADIAC Geforce 2 MX 32Mb 
FA-11 10/100 Ethernet Adapter

I have tried to setup this network card in both redhat 7.1 and
mandrake 8.0 and get the same error.

PCI: Found IRQ 10 for device 00:0f.0
tulip: eth0: MMIO Region (0X0@0X0) Unavailable, aborting
Delaying eth0 initialization

I searched usenet for this problem and found few results.  Anyone have
any ideas.  I know my ethernet adapter works with the tulip driver
because it did on my old computer.  Any Suggestions?

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

Subject: Re: Backing up Windows on Linux
From: Michael Meissner <[EMAIL PROTECTED]>
Date: 10 May 2001 23:04:47 -0400

[EMAIL PROTECTED] writes:

> >>>>> "Steve" == Steve Smith <[EMAIL PROTECTED]> writes:
> 
>     Steve> Yes, I can do this, but...  I'm producing a list of files
>     Steve> and directories to back up via "ls", and filtering with
>     Steve> grep to eliminate certain directories.
> 
> As others have pointed out, spend some time on learning use 'find' for
> this task would be more  fruitful than struggling with 'ls'.  However,
> out of interest,  I would like to  point out how you could  do this in
> with.
> 
>     Steve> I would need to
>     Steve> substantially complicate my script (so far as I can tell)
>     Steve> to add quotes or escape. I'm wondering if anyone has an
>     Steve> easier solution.
> 
> That's not too complicated if you are aware of 'sed':
> Pipe the output of 'ls' through: sed 's/([ *?])/\\\1/g'

As I said earlier, if there is a possibly somebody has created a filename with
a newline in the name (which is legal) you either have to hide the newline, or
use alternate parsing strategies that writes out null terminated names, instead
of newline terminated names.

> 
>     Steve> Restating it: I don't want to give tar a fixed list of
>     Steve> files and directories.  I want to create the list each
>     Steve> time, with the exception of certain directories.
> 
> If you're using  GNU tar, there's another method:  the -T option.  You
> can generate the list and  store the file names, without quoting, into
> a temp.  file.  Then:
>            tar Icvf /win-backup.tbz -T /tmp/myfilelist
> Cool?  Also note the "-C" option of GNU tar, which is very convenient.

The trouble with -T is if you specify any directory, GNU tar will stupidly copy
every file in the directory, which is what you don't want if you are using
find.  I tend to use cpio to work around this problem.

> However, both  "-T" and  "-C" are non-standard  options, in  the sense
> that many non-GNU tar implementations do not recognize them (let alone
> having such cool features).
> 
> 
> 
> 
> -- 
> Lee Sau Dan                     §õ¦u´°(Big5)                    ~{@nJX6X~}(HZ) 
> .----------------------------------------------------------------------------.
> | e-mail: [EMAIL PROTECTED]                     http://www.csis.hku.hk/~sdlee |
> `----------------------------------------------------------------------------'

-- 
Michael Meissner, Red Hat, Inc.  (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:     [EMAIL PROTECTED]           phone: +1 978-486-9304
Non-work: [EMAIL PROTECTED]   fax:   +1 978-692-4482

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


** 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.hardware.

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-Hardware Digest
******************************

Reply via email to