Linmodems Mailing list Archives


Return-Path: <>
Mailing-List: contact; run by ezmlm
Delivered-To: mailing list
Received: (qmail 11529 invoked from network); 20 Apr 2004 19:40:37 -0000
Received: from (
  by with SMTP; 20 Apr 2004 19:40:37 -0000
Received: from localhost (localhost.localdomain [])
	by (Postfix) with ESMTP id 768A7167C72
	for <>; Tue, 20 Apr 2004 22:40:36 +0300 (IDT)
Received: from ([])
 by localhost ( []) (amavisd-new, port 10024)
 with LMTP id 02606-01-91 for <>;
 Tue, 20 Apr 2004 22:40:36 +0300 (IDT)
Received: from ( [])
	by (Postfix) with ESMTP id 52F09167B1E
	for <>; Tue, 20 Apr 2004 22:40:36 +0300 (IDT)
Received: from localhost (localhost [])
	by (Postfix) with ESMTP
	id 4E3903C16; Tue, 20 Apr 2004 22:40:34 +0300 (IDT)
Received: from ([])
 by localhost ( []) (amavisd-new, port 10024)
 with LMTP id 21050-01-23; Tue, 20 Apr 2004 22:40:34 +0300 (IDT)
Received: from ( [])
	by (Postfix) with ESMTP
	id 2244136B0; Tue, 20 Apr 2004 22:40:34 +0300 (IDT)
Date: Tue, 20 Apr 2004 22:41:32 +0300 (IDT)
From: Jacques Goldberg <>
X-X-Sender: goldberg@localhost.localdomain
Reply-To: Jacques Goldberg <>
To: "Elmer E. Dow" <>
Cc: LinModems <>
Subject: Re: Red Hat 2.4.20-20.9 on IBM R40 with Agere softmoden
In-Reply-To: <000601c4270c$74963b70$7cc9bf3f@Elmer>
Message-ID: <Pine.LNX.4.58_heb2.09.0404202228070.6459@localhost.localdomain>
References: <>
X-MailKey: 829.36.63
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1024710468-1082490092=:6459"
X-Virus-Scanned: by amavisd-new at
X-Virus-Scanned: by amavisd-new at

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to for more info.

Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 20 Apr 2004, Elmer E. Dow wrote:

> How can I make two distinct lines in the terminal without using a carriage
> return?
  1-two distinct lines  need a carriage return
  2-many COMMANDS in ONE line:   use ; as separator between successive
> Or if I use the script file, how do I run it? I've created the file as per
> instructions but I don't know how to run it in terminal. I assume that I
> need to type "run pppfinder" or some such command.

  Marv tells you to create the file pppfinder
  Then the command   chmod a+x pppfinder   makes it executable
  You "run" it by simply typing    ./pppfinder

> -name$i*needs  a space:     -name  "$1"*
> There may also be a line folding issue.There are two & only two distinct
> lines, which should not be folded with a carraige return.The first lists
> the target stems:
  This is ONE LINE:
> Modules="bsd_comp. ppp_async. ppp_generic. slhc ppp_deflate. zlib_deflate."
  This is a second line made of three commands (it builds a loop) using
the previous line). In this second line the $ in front of Modules makes it
use in turn each of the 5 possibilities defined in the FIRST line
> for i in $Modules ; do find /lib/modules/ -name$i* ; done >
> While the second does: find
> The above can be put into a small script,below with a litte extra

  Just copy these lines in a file pppfinder. I did it for you and it is
  When you have it  ready give the command:
  chmod a+x pppfinder   so that the system knows that this is a command
  Then type   pppfinder
  That's all
  The technique is called "Bash scripting".
  A very complete documentation, starting from the beginning, can be found
  I believe "Introduction to Unix System 5" by Mark Sobell to be the best
book to learn Linux/Unix, by far.
> #!/bin/sh
> # Save as pppfinder
> # make executable with
> # chmod a+x pppfinder
> echo
> echo Finding PPP related drivers
> Modules="bsd_comp. ppp_async. ppp_generic. slhc ppp_deflate. zlib_deflate."
> for i in $Modules
> do
> find /lib/modules/ -name $i*
> GZ=`find /lib/modules/ -name   $i* | grep .gz`
> done
> if test -n "$LIST" ; then
> echo The following files must be gunzipED:
> echo $LIST
> fi
> echo
> # END

                                >>>> Currently at TECHNION <<<<
                                PHONE: Technion=+(972)(0)(4)829.36.63
                                FAX:   Technion=+(972)(0)(4)829.36.68
                                HOME: Haifa=+(972)(4)825.29.04
                                GSM portable: +(972)(0)
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=pppfinder
Content-Transfer-Encoding: BASE64
Content-Description: Save, chmod a+x , then execute
Content-Disposition: attachment; filename=pppfinder



Webmaster: Russell Nelson
Last modified: Wed Jul 30 11:02:43 EDT 2003