Linux-Misc Digest #263, Volume #27                Thu, 1 Mar 01 16:13:02 EST

Contents:
  Re: redirect stderr to both screen and logfile at same time? ("Artem I. Ivanov")
  Re: mount priviliege (Drew Roedersheimer)
  External modem on ThinkPad (John Dixon)
  Re: LILO + Mylex 170 ("Steve Wolfe")
  Re: Plextor can't mount CDs 121032A does not grab > 8x (Bora Ugurlu)
  Re: upgrade xfree86 in redhat 6.2 (Markus Kossmann)
  Re: X Server questions ("Wayne Howarth")
  Re: Stop misspelling Beowulf ! ("Eric en Jolanda")
  Re: Unable to mount...08:32 ([EMAIL PROTECTED])
  print to email ("Major Dondo")
  RH7.0 init (Justin Hibbits)
  Re: [Fwd: forwarding broadcast traffic] (Trevor Hennion)
  Re: Odd Question ("Harlan Grove")
  Re: Regular Expression Syntax Limitation? ("Harlan Grove")
  Cannot find image file?? (Dylan)
  Re: print to email (Lew Pitcher)
  Re: Problem mounting ZIP 250 USB drive ("Matt Lundberg")
  Linux app for video store (Henry Meyerding)
  Linux freezes (Claus Atzenbeck)
  Re: Regular Expression Syntax Limitation? ("Adam Warner")
  Re: gcc problem (Jean-David Beyer)
  Re: Linuxconf unavailable (:98) after upgrade  ("John Gill")

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

From: "Artem I. Ivanov" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,alt.solaris.x86,comp.unix.admin,comp.unix.aix,comp.unix.misc,comp.unix.shell
Subject: Re: redirect stderr to both screen and logfile at same time?
Date: Thu, 1 Mar 2001 21:24:23 +0300

Hi, All

"J.Smith" <[EMAIL PROTECTED]> wrote in message
news:fSum6.5750$43.28434@zonnet-reader-1...
> Hi.
>
> In a particular script, I would like to be able to (re)direct stdout and
> stderr to *both* the screen *and* a logfile at the same time. Just doing
> './commandname 1>/logfile 2>/logfile' will redirect stdout and stderr to
the
> logfile, but wont show the output on the screen anymore. And the 'tee'
> command only seems to work for stdout, and not for stderr.
>

    Just swap out STDOUT and STDERR

       cat  FileExist FileNotExist   2>&1  >logfile  | tee -a logfile.err

     Note: 2>&1 must take place BEFORE  1>logfile

  Artem Ivanov ([EMAIL PROTECTED])




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

From: [EMAIL PROTECTED] (Drew Roedersheimer)
Subject: Re: mount priviliege
Reply-To: [EMAIL PROTECTED]
Date: Thu, 01 Mar 2001 18:31:05 GMT

On Thu, 1 Mar 2001 12:39:00 +0000, Martin Greco wrote:
>I would like to know how to give mount priviliege to a common user, as I 
>gave execute permission with chmod It still says "only root can do that"
>
>Any help?
>
>Martin

In /etc/fstab specify user in the options field.  The layout of fstab is
as follows:

# <file system> <mnt point>    <type>   <options>           <dump><pass>

An example:
/dev/sdb2        /mnt/backup    ext2     rw,user               0    2


man mount gives more specifics...


HTH
-DR

-- 
Build a system that even a fool can use and only a fool will want to use it.

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

From: John Dixon <[EMAIL PROTECTED]>
Subject: External modem on ThinkPad
Date: Thu, 01 Mar 2001 10:44:29 -0800

I have a TP A20m with an internal Lucent winmodem.  It works very well
in data mode with the *very* snazzy linmodem driver.   For some reason,
however, it does not work in fax mode, giving a "no response/command
from remote" signal.  An old USRobotic pc card modem in this machine
does fax stuff fairly well.

So...I had an Aopen M56-EX/2 external hardware modem unused, so decided
to hook it up to the TP for home/office use.  

For some reason the ThinkPad doesn't recognize it...indeed, it doesn't
seem to be scanning the serial ports at boot - as does my Desktop with
the exact same Mandrake 7.2 distro running the 2.4.2 kernel.  Is there
something special that needs to be done to get a ThinkPad to recognize
its serial port?  BTW, this external modem is flawlessly detected by
Win98 on this machine, and works perfectly.

How can I get Linux to see my serial port/ external modem?  I'm sure
that I'm missing something incredibly obvious.

Thanks for any help!

John Dixon in Vancouver

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

From: "Steve Wolfe" <[EMAIL PROTECTED]>
Subject: Re: LILO + Mylex 170
Date: Thu, 1 Mar 2001 11:34:45 -0700

> The boot installer (21.6 and later) can tell you about device codes with
the
> -T diagnostic switch
>
> lilo -T help
> lilo -T geom
>
> should give you geometry and device code information.
>
> lilo -v3 will tell you what device codes lilo is trying to use when it
> installs the boot loader and map file.

  OK.  Now I've gotten a little farther.  Booting to the IDE drive, lilo -T
geom says that the only BIOS drive is the IDE drive.  The SCSI card shows
that the BIOS is installed, so I'm not sure why the machine's BIOS doesn't
see the drive.  In any event, it looks like I need to specify the device
code (i.e., bios=0x???).  But.... how do I find out what the device code is?

steve




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

From: Bora Ugurlu <[EMAIL PROTECTED]>
Subject: Re: Plextor can't mount CDs 121032A does not grab > 8x
Date: Thu, 1 Mar 2001 19:50:51 +0100

 
> Yes, the bios says it's in PIO mode 4, and the DVD drive is in DMA mode
> 2.  But Linux puts the Plextor drive in DMA mode.  ("hdparm -v /dev/hdc"
> shows "using_dma" as 1.)  That's under 2.4; I don't know if 2.2 uses DMA
> on it or not, and I wonder what would happen if I were to disable DMA
> before trying to mount anything.  I'll have time to try that later...
>

Have tried turning DMA off, and you know what, it worked.

Now, how do I tell the kernel to turn DMA off while recognizing the 
/dev/hdc?
I don't load the IDE driver as a module, it is compiled into the kernel. 
I'll try to insert the hdparm -d0 /dev/hdc command in the 
/sbin/init.d/boot.local file.

Bora 

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

From: Markus Kossmann <[EMAIL PROTECTED]>
Subject: Re: upgrade xfree86 in redhat 6.2
Date: Thu, 01 Mar 2001 18:46:11 +0100

Wong Ching Kuen Frederick wrote:
> 
> i want to upgrade the xfree86 from 3.3.6 to 4.0.1 in my redhat 6.2 box.
> however, i get a bunch of failed dependencies. can anyone give me some good
> suggestion?!
> 
> [root@xyz RPMS]# rpm -Uvh XFree86-4.0.1-1.i386.rpm
> XFree86-xfs-4.0.1-1.i386.rpm XFree86-libs-4.0.1-1.i386.rpm
> initscripts-5.49-1.i386.rpm ncurses-devel-5.1-2.i386.rpm
> ncurses-5.1-2.i386.rpm modutils-2.3.14-3.i386.rpm glibc-2.1.92-14.i686.rpm
> 
> error: failed dependencies:
>         rpm <= 4.0-0.65 conflicts with glibc-2.1.92-14
[... long list of failed depencies ]

Either get rpms, which are build for RH-6.2 (and not for RH-7.0) or do a
full update to 7.0.   

-- 
Markus Kossmann                                    
[EMAIL PROTECTED]

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

From: "Wayne Howarth" <[EMAIL PROTECTED]>
Subject: Re: X Server questions
Date: Thu, 1 Mar 2001 19:00:52 -0000

Cheers guys.

Wayne.



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: Stop misspelling Beowulf !
Date: Thu, 1 Mar 2001 19:59:29 +0100

> > think the issue of correct spelling of "Beowulf" should be included in
the
> > Beowulf FAQ.
>
> So use Grindle instead.
>

:-)


Eric



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

From: [EMAIL PROTECTED]
Subject: Re: Unable to mount...08:32
Date: 1 Mar 2001 19:21:49 GMT

Regarding splitting into multiple partitions: is this possible on an
existing system?  I know how to do partitioning on a fresh install only
(when I first installed the current Linux system, I didn't have a clue on
partitioning and accepted the defaults; learned about effective
partitioning on a recent FreeBSD install)


[EMAIL PROTECTED] wrote: > Problem.

> Check each and every file on hda6, against the rpm database or something.

> I had an odd situation here when i hit the reset switch once.
> A binary got corrupted., and had to be replaced.


> You might want to split the system  into  several partitions.
> /boot
> /
> /root
> /tmp
> /var
> /home
> /usr

> This way, if something in the /usr part gets screwed up, the / ( root ) is
> not affected, and you can repair it fairly quickly.
> With your current everything-in-one-partition setup, corruptions in /home
>  or other non-root) could cause you unnecessary complications.



===========================================
John Meshkoff    johnm at sivakalpa dot org
remove 'johnpipe' in 'From:' to reply
http://www.sivakalpa.org/johnpipe/
"I do not know that I know the self fully,
neither do I know that I know him not"
                ...from the Upanishads

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

From: "Major Dondo" <[EMAIL PROTECTED]>
Subject: print to email
Date: Thu, 01 Mar 2001 13:41:48 +0500

Is there a print to email gateway for linux?  I've found all sorts of
stuff for faxes; I need something similar for email.

I want to be able to print a piece of text and have an email client pop
up with the text filled in.

Does this exist_  I can�t help but think that I'm overlooking something
simple.

--Yan

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

From: Justin Hibbits
Subject: RH7.0 init
Date: 1 Mar 2001 18:47:27 GMT


This is probably well-documented, but I did not find any security updates for RH7's 
sysvinit package.  It contains a huge security
hole, which allows a user that fscks the disks on bootup to gain root access ( 
Runlevel 1) by pressing Ctrl-C during the fscking.
I don't know if it occurs with their kernel 2.2.16, but I know it occurs with my 
kernel 2.4.0-test9.  Could someone confirm this?


On another note, I found another problem with init.  After screwing up my glibc 
libraries, I fixed them, and now init comes up with
;cannot create file /etc/initrunlvl - read-only filesystem'
I think that either init or the fifo /dev/initctrl is screwed up.  Can anyone help me? 
 I checked out /dev/initctrl, and everything 
looks fine.  HELP!!!! I am begging anyone!  Maybe I can compile my new one and that 
might work, but I just don't know, and
I don't want to reinstall redhat.

Thanks for any help in advance,
Justin Hibbits

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

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

From: (Trevor Hennion)
Crossposted-To: uk.comp.os.linux
Subject: Re: [Fwd: forwarding broadcast traffic]
Date: Thu, 01 Mar 2001 19:24:25 GMT

On Thu, 01 Mar 2001 11:35:30 +0000, Jon Masters
<[EMAIL PROTECTED]> wrote:

>This is a multi-part message in MIME format.
>--------------DB7862256C6259A87D9DAA2F
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hi,
>       thanks for any advice,
>                               --jcm
>--------------DB7862256C6259A87D9DAA2F
>Content-Type: message/rfc822
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline
>
>X-Mozilla-Status2: 00000000
>Message-ID: <[EMAIL PROTECTED]>
>Date: Thu, 01 Mar 2001 09:10:42 +0000
>From: Jon Masters <[EMAIL PROTECTED]>
>Organization: World Organisation of Broken Dreams
>X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2 i686)
>X-Accept-Language: en
>MIME-Version: 1.0
>To: [EMAIL PROTECTED]
>Subject: forwarding broadcast traffic
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hi,
>        a small part of the local network here looks like this:
>
>
>                 REST OF LAN
>                      |
>                      | (router eth1)
>                      |
>                 masquerading
>                router (kernel 2.2.14)
>                      |
>                      | (router eth0)
>                      |
>                   desktop (private IP)
>                     box  (kernel 2.4.2)
>
>I wish to have broadcast traffic from the desktop box go out to the rest
>of the LAN and vice versa however I seem to be coming up against a
>problem that I believe may have been discussed previously.
>
>Sending icmp broadcast echo requests out from the router will go
>correctly to the external interface however doing the same from the
>desktop box results only in a reply from the router and itself, even
>with explicit host entries in the router for 255.255.255.255 to go via
>eth1.
>
>It would appear a discussion along these lines has come up before
>however I am not able to find the eventual resolution which was given
>previously. Basically I want to do some kind of transparent proxying but
>only in this specific case.
>
>I expect someone will point out that this is all due to some idiocy of
>mine somewhere and that it's easily fixed but either I'm too tired to
>see it or it's not as easy as it seems.
>
>Sorry to bother people,
>                        --jcm
>
>--------------DB7862256C6259A87D9DAA2F--
>

Does the desktop communicate via the router successfully for ather
traffic? If not then you may need to ensure that 'ip_forward' is set.

cat /proc/sys/net/ipv4_forward to see what value is stored. It should
be 1 (or greater ?)

HTH

Trevor Hennion
-- 
Trevor Hennion
Oakhaven Consultants Ltd - Linux specialists
Reading UK. 01189831707
http://www.oakhaven-consultants.co.uk

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

From: "Harlan Grove" <[EMAIL PROTECTED]>
Subject: Re: Odd Question
Date: Thu, 01 Mar 2001 19:29:10 GMT

Andre Kostur <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
...
>rm -- --atime-preserve

Why wouldn't this work?

rm ./--atime-preserve



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

From: "Harlan Grove" <[EMAIL PROTECTED]>
Subject: Re: Regular Expression Syntax Limitation?
Date: Thu, 01 Mar 2001 19:29:31 GMT

Adam Warner <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
...
>I've been trying to use grep to filter a file whenever it says Copyright
>[some name other than Microsoft].
...
>'opyright.*[^M][^i][^c][^r][^o][^s][^o][^f][^t]'

Already good answers. The reason this doesn't work is because the .* is
'greedy'. As long as there are at least 9 characters after 'Microsoft', the
.* will happily eat 'Microsoft'.



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

From: Dylan <[EMAIL PROTECTED]>
Subject: Cannot find image file??
Date: Thu, 01 Mar 2001 19:30:08 -0000

I have linux for windows by madrake, v 6.1. I installed it fine, but then 
when I run the program to boot into linux from windows (lnx4win.exe), 
windows shuts down, and then it says that the program (i think ldlinux) 
cannot find the image kernel file (or something like that) and it wants me 
to type in the name of it in. What do I do!!!! 

--
Posted via CNET Help.com
http://www.help.com/

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

From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: print to email
Reply-To: [EMAIL PROTECTED]
Date: Thu, 01 Mar 2001 19:32:15 GMT

On Thu, 01 Mar 2001 13:41:48 +0500, "Major Dondo" <[EMAIL PROTECTED]>
wrote:

>Is there a print to email gateway for linux?  I've found all sorts of
>stuff for faxes; I need something similar for email.
>
>I want to be able to print a piece of text and have an email client pop
>up with the text filled in.
>
>Does this exist_  I can�t help but think that I'm overlooking something
>simple.
>
>--Yan

How about just piping the output text to the mail program, as in
  ps aux | mail -s "Output of ps" root@localhost 
pr
  mail -s "/etc/passwd file" root@localhost </some/text/file

Lew Pitcher
IT Consultant, Development Services
Toronto Dominion Bank Financial Group

(Opinions expressed are my own, not my employers')

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

From: "Matt Lundberg" <[EMAIL PROTECTED]>
Subject: Re: Problem mounting ZIP 250 USB drive
Date: Thu, 1 Mar 2001 13:14:28 -0600
Reply-To: "Matt Lundberg" <[EMAIL PROTECTED]>


Cedric Chausson <[EMAIL PROTECTED](halteauspam)> wrote in message
news:97jva1$1h72$[EMAIL PROTECTED]...
: Hello all,
:
: Hello all,
:
: When I try to mount my ZIP USB drive (mount -t vfat /dev/sda
: /mnt/usbzip) with a PC formated disk (empty or full), I get the following
error :
:
: mount : type fs incorrect, incorrect option, incorrect superblock on
/dev/sda,
:        or too many filesystems mounted.

I have a scsi ZIP 100M drive, which might be similar.  The disks that Iomega
sells have a partition table.  You don't access the raw device, but rather
the
4th primary partition, as in /dev/sda4.  Don't ask me it doesn't use the
first.
``fdisk -l /dev/sda'' should give you information.



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

From: Henry Meyerding <[EMAIL PROTECTED]>
Subject: Linux app for video store
Date: Thu, 01 Mar 2001 11:51:32 -0800

Anyone know where one might find a retail application for a small to
medium video store under Linux?

Please reply via email

Thanks
-- 
Henry Meyerding
Growing old is inevitable.
Growing up is still an option.

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

From: Claus Atzenbeck <[EMAIL PROTECTED]>
Subject: Linux freezes
Date: Thu, 1 Mar 2001 20:58:01 +0100

I am looking for the reason why my Linux Mandrake 7.2 totally freezes some 
time.

First, I thought it might be because I have a SCSI hard drive switched on 
while booting, and later it is unmounted and switched off.

Now, I had the hard drive switched off on booting, so it does not exist for 
my computer, but my computer freezing again. :-(

May it be the reason that (although switched off on boot) my SCSI hard 
drive is still connected to my computer's SCSI port? Or is it unlikely that 
this might be the reason?

Thanks for any hint!
Claus.

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

From: "Adam Warner" <[EMAIL PROTECTED]>
Subject: Re: Regular Expression Syntax Limitation?
Date: Fri, 02 Mar 2001 09:21:14 +1300

In article <[EMAIL PROTECTED]>, "John W. Krahn" <[EMAIL PROTECTED]>
wrote:

>> for file in *.*
>>    do
>> 
>>       strings -a -f $file | tr -s '\n' '|' | sed -e
>>       
>s/[Cc][Oo][Pp][Yy][Rr][Ii][Gg][Hh][Tt].*[Mm][Ii][Cc][Rr][Oo][Ss][Oo][Ff][Tt]/XXXXXXXX/
>>       | tr -s '|' '\n' | grep -B2 -C2 -i 'copyright' >> output/fulllist
>> 
>>    done
>> 
>> strings -a -f $file strips the strings out of the binary file. tr -s
>> '\n' '|' converts all line breaks to a dummy character "|" (this is so
>> sed can operate over multiple lines).
>   ^^^^^^^^^^^^^^
> 
> If you want the perl regex to match over multiple lines change it to:
> $ perl -n0777 -e '/(?i:copyright).*?(?!Microsoft)/s and print "$ARGV\n"'
> *
> 
> I made the assumtion that the message "Copyright ... Microsoft" would
> not have a newline (\n) between the two words (which I think is a safe
> assumtion for most copyright notices.)

Thanks. The assumption wasn't safe. Many of the copyrights went:

LegalCopyright
   Microsoft

Regards,
Adam

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

From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: gcc problem
Date: Thu, 01 Mar 2001 16:01:54 -0500

Dave Seff wrote:
> 
> I am having a problem with the gcc compiler. It seems that a program such
> as this:
> 
> #include <stdio.h>
> #include <string.h>
> 
> main()
> {
>   char *string1 = "We will all shout \"Howdy\" now!\n";
>   char *string2;
>   int i, len;
> 
>   len = strlen(string1);
>   printf("%s\n", string1);
> 
>   for(i = 0; i < len; i++)
>     if (string1[i] == '\"')
>       string1[i] = '\'';
> 
>   printf("%s\n", string1);
> }
> 
> It compiles but segfaults on the string1[i] = '\''; line. This same code
> runs file on Solaris and DGUX.
> 
> My gcc is
> gcc version 2.95.3 19991030 (prerelease)
> 
> Any Ideas?

You might wish to use the string2 you declared:

#include <stdio.h>
#include <string.h>
#include <malloc.h>
 
main()
{
  const char *string1 = "We will all shout \"Howdy\" now!\n";
  char *string2;
  int i, len;
 
  len = strlen(string1);
  string2 = malloc(len + 1);
  if(string2 == NULL) {
    printf("Ouch!\n");
    exit(1);
  }

  strncpy(string2, string1, len + 1);

  for(i = 0; i < len; i++)
    if (string2[i] == '\"')
      string2[i] = '\'';

  printf("%s\n", string2);
}

It appears that the implementation of gcc does not permit diddling
constants, though it does not complain either. But you should not do
it anyway because some compilers put them in read-only memory so you
cannot make something like your original program work anyway.
-- 
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey     http://counter.li.org 
^^-^^ 3:55pm up 2 days, 23:53, 4 users, load average: 0.33, 0.13, 0.07

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

From: "John Gill" <[EMAIL PROTECTED]>
Subject: Re: Linuxconf unavailable (:98) after upgrade 
Date: Thu, 01 Mar 2001 21:05:13 GMT

It is my understanding that xinetd is not working correctly in Red Hat 7.0,
but there is a patch.

See:    http://www.solucorp.qc.ca/howto.hc?projet=linuxconf&id=42

-- JJG

"Andy B" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I've just upgraded to RH7 from 6.1 but cannot talk to port 98, however
port
> 901 (swat) in still working.
>
> Any ideas?
>
>
> thanks in advance
>
>
> Andy B.
>
>



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


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