Linmodems Mailing list Archives

Google
 
Web archives.linmodems.org

Return-Path: <goldberg@phep2.technion.ac.il>
Mailing-List: contact discuss-help@linmodems.org; run by ezmlm
Delivered-To: mailing list discuss@linmodems.org
Received: (qmail 11529 invoked from network); 20 Apr 2004 19:40:37 -0000
Received: from mailgw3.technion.ac.il (132.68.238.35)
  by www.linmodems.org with SMTP; 20 Apr 2004 19:40:37 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mailgw3.technion.ac.il (Postfix) with ESMTP id 768A7167C72
	for <discuss@linmodems.org>; Tue, 20 Apr 2004 22:40:36 +0300 (IDT)
	(envelope-from goldberg@phep2.technion.ac.il)
Received: from mailgw3.technion.ac.il ([127.0.0.1])
 by localhost (mailgw3.technion.ac.il [127.0.0.1]) (amavisd-new, port 10024)
 with LMTP id 02606-01-91 for <discuss@linmodems.org>;
 Tue, 20 Apr 2004 22:40:36 +0300 (IDT)
Received: from techunix.technion.ac.il (techunix.technion.ac.il [132.68.1.28])
	by mailgw3.technion.ac.il (Postfix) with ESMTP id 52F09167B1E
	for <discuss@linmodems.org>; Tue, 20 Apr 2004 22:40:36 +0300 (IDT)
	(envelope-from goldberg@phep2.technion.ac.il)
Received: from localhost (localhost [127.0.0.1])
	by techunix.technion.ac.il (Postfix) with ESMTP
	id 4E3903C16; Tue, 20 Apr 2004 22:40:34 +0300 (IDT)
Received: from techunix.technion.ac.il ([127.0.0.1])
 by localhost (techunix.technion.ac.il [127.0.0.1]) (amavisd-new, port 10024)
 with LMTP id 21050-01-23; Tue, 20 Apr 2004 22:40:34 +0300 (IDT)
Received: from phep2.technion.ac.il (phep2.technion.ac.il [132.68.64.53])
	by techunix.technion.ac.il (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 <goldberg@phep2.technion.ac.il>
X-X-Sender: goldberg@localhost.localdomain
Reply-To: Jacques Goldberg <Jacques.Goldberg@cern.ch>
To: "Elmer E. Dow" <elmeredow@earthlink.net>
Cc: LinModems <discuss@linmodems.org>
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: <410-220044220172539505@M2W063.mail2web.com>
 <000601c4270c$74963b70$7cc9bf3f@Elmer>
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 technion.ac.il
X-Virus-Scanned: by amavisd-new at technion.ac.il

  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 mime@docserver.cac.washington.edu for more info.

--8323328-1024710468-1082490092=:6459
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?
  Misunderstanding:
  1-two distinct lines  need a carriage return
  2-many COMMANDS in ONE line:   use ; as separator between successive
commands
>
> 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
attached.
  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
at http://www.tldp.org/LDP/abs/html/.
  I believe "Introduction to Unix System 5" by Mark Sobell to be the best
book to learn Linux/Unix, by far.
                                               Jacques
>
> #!/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`
> LIST=$GZ" $LIST"
> done
>
> if test -n "$LIST" ; then
> echo The following files must be gunzipED:
> echo $LIST
> fi
> echo
> # END
>

                                Jacques.Goldberg@cern.ch
                                >>>> Currently at TECHNION <<<<
                                PHONE: Technion=+(972)(0)(4)829.36.63
                                           CERN=+(41)(22)767.73.85
                                FAX:   Technion=+(972)(0)(4)829.36.68
                                           CERN=+(41)(22)767.31.00
                                HOME: Haifa=+(972)(4)825.29.04
                                GSM portable: +(972)(0)54.29.36.63
--8323328-1024710468-1082490092=:6459
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

IyEvYmluL3NoDQojIFNhdmUgYXMgcHBwZmluZGVyICAgDQojIG1ha2UgZXhl
Y3V0YWJsZSB3aXRoDQojIGNobW9kIGEreCBwcHBmaW5kZXINCmVjaG8NCmVj
aG8gRmluZGluZyBQUFAgcmVsYXRlZCBkcml2ZXJzDQpNb2R1bGVzPSJic2Rf
Y29tcC4gcHBwX2FzeW5jLiBwcHBfZ2VuZXJpYy4gc2xoYyBwcHBfZGVmbGF0
ZS4gemxpYl9kZWZsYXRlLiINCmZvciBpIGluICRNb2R1bGVzDQpkbyAgDQpm
aW5kIC9saWIvbW9kdWxlcy8gLW5hbWUgJGkqDQpHWj1gZmluZCAvbGliL21v
ZHVsZXMvIC1uYW1lICAgJGkqIHwgZ3JlcCAuZ3pgDQpMSVNUPSRHWiIgJExJ
U1QiICAgICAgDQpkb25lDQoNCmlmIHRlc3QgLW4gIiRMSVNUIiA7IHRoZW4N
CmVjaG8gVGhlIGZvbGxvd2luZyBmaWxlcyBtdXN0IGJlIGd1bnppcEVEOg0K
ZWNobyAkTElTVA0KZmkNCmVjaG8NCiMgRU5EDQoNCg==

--8323328-1024710468-1082490092=:6459--

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