Linux-Development-Sys Digest #347, Volume #6 Fri, 29 Jan 99 20:14:06 EST
Contents:
Re: [HELP] How to determine daemon's TCP/IP ports? (Richard Jones)
Re: how to find size of block device like /dev/hda ("David D. Gitchell")
Re: Configuring system to have multiple ethernet addresses (Patrick Sulzle)
Re: Why I'm dumping Linux, going back to Windblows (Chris)
Re: How do you read core dump on Linux? (Craig Kelley)
trying to write a module which uses parallel port, but inb( port ) is (Olof Wolgast)
Re: Modest next goal for Linux (James Youngman)
Infos an�bout Intel's Manual Reference (i386+) ("Berto")
how to find size of block device like /dev/hda (Harald Boegeholz)
Re: Why I'm dumping Linux, going back to Windblows (David T. Blake)
COM for Linux? ("Aaron Perrin")
Re: disheartened gnome developer (Christopher Browne)
Re: Why I'm dumping Linux, going back to Windblows (jedi)
Re: libc5 and glibc (Ronald Cole)
Re: disheartened gnome developer (Michael Powe)
raid 990128 (I must be mad, but I love it!) (A James Lewis)
Re: Linux Unix98 (?) Certification (was Re: Microsoft is Exactly Like a Fermenting
Jug of Grape Juice...) (Ian D Romanick)
----------------------------------------------------------------------------
From: Richard Jones <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: [HELP] How to determine daemon's TCP/IP ports?
Date: Thu, 28 Jan 1999 17:58:04 +0000
Lam Dang <[EMAIL PROTECTED]> wrote:
: Given an executable running on, say, Red Hat
: 5.2, is it possible to determine the TCP/IP port
: or ports it responds to, without documentation and
: source? If so, what's the best way to do it?
Some combination of netstat(8) and fuser(1) should
give you the relevant information.
Rich.
--
- Richard Jones. Linux contractor London and SE areas. -
- Very boring homepage at: http://www.annexia.demon.co.uk/ -
- You are currently the 1,991,243,100th visitor to this signature. -
- Original message content Copyright (C) 1998 Richard Jones. -
------------------------------
From: "David D. Gitchell" <[EMAIL PROTECTED]>
Subject: Re: how to find size of block device like /dev/hda
Date: Fri, 29 Jan 1999 08:23:12 -0600
Harald Boegeholz wrote:
>
> Hello,
>
> I'd like to access a hard disk as directly as possible for benchmarking
> purposes. So far I have come up with the idea of using the raw device
> file, e.h. /dev/hda. How do I find out the size of the corresponding
> disk? A simple call of stat() on the device returns a size of zero :-(
You might try looking at /proc/partitions, and the source for
same.
-- Dave
============================================================
#include <std_disclaimer.h> /* I speak for myself, only. */|
============================================================
LCDR David D. Gitchell, USN (Retired), Hutchinson, KS, USA
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
------------------------------
From: Patrick Sulzle <[EMAIL PROTECTED]>
Crossposted-To:
comp.dcom.lans.ethernet,comp.os.linux.networking,comp.os.ms-windows.programmer.networks
Subject: Re: Configuring system to have multiple ethernet addresses
Date: Wed, 27 Jan 1999 23:02:22 +0000
[EMAIL PROTECTED] wrote:
>
> If what you are trying to do is to have two cards with an unique ip and
> connected to same network to do different tasks, it wont work. as for
> microsfot design, multiple computers with same computer name situation
> is not allowed.
>
> If you just want your configured connected to multiple networks, you
> can add interfaces as much as resource allows.
>
> In article <[EMAIL PROTECTED]>,
> Amey Laud <[EMAIL PROTECTED]> wrote:
> > I am building a distributed number crunching system, in which a lot of
> > data needs to be moved between machines.
> > In order to streamline the process and avoid bottlenecks due to
> > network/IO latencies, I am considering
> > using separate networks to handle the input and the output, that is,
> > each system reads from a different physical network
> > and writes into a different physical network. This would mean that each
> > machine have two IP addresses
> > that are configured on separate ethernet cards and can be addressed and
> > used explicitly.
> > 1. Is such an arrangement possible? (That is, OS and IP support)
> > 2. Are there existing examples of such a setup?
> > 3. The arrangement might involve heterogenous platforms.
> > I am interested specifically on the possibility of such a setup on
> > NT/Linux running on Intel (Xeon)/Alpha.
> >
> > 4. Are there existing message passing API's (such as MPI) based on
> > TCP/IP that support such a configuration.
> >
> > I would glad to get any suggestions in this regard.
> >
> > Amey Laud.
> >
> > [EMAIL PROTECTED]
> >
> > Research Engineer,
> > Centre for Signal Processing,
> > Singapore 639798
> >
Theoretically it should be possible. But there has to be an
implementation that only looks at the MAC of your network card for
adressing. Maybe it is necessary to develop your own networking
software. Practically every networking software is build according the
OSI model. That is too much overhead for your needs. TCP/IP is certainly
not capable of routing the data as you want it. If it makes any sense to
go this way...?
Maybe there are some specialists with more knowledge about networking,
that can give you a more specific answer. I am just a student...:)
Good Luck!
Sjoel
--
* * * * * * * * * * * * * * * * * * * * * * * *
* *
URL : http://www.xs4all.nl/~sjoel * remove xxx from email
E-mail : [EMAIL PROTECTED] * adress node name
system : linux 2.1.130 P11 350/128Mb * (sorry about
anti-spam)
------------------------------
From: Chris <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Why I'm dumping Linux, going back to Windblows
Date: Fri, 29 Jan 1999 11:29:27 -0600
David T. Blake wrote:
>
> >Linux can be made easier to millions more with very small effort.
> >Such as what people are talking about here: adding examples in man
> >pages.
> If you want linux improved, improve it. There is nothing
> to keep anyone from making any changes they want and
> distributing them as widely as they wish. That is the
> strength of the GPL operating system. No one owns it. You
> don't have any marketing engineer to talk to about what
> options you want. If you want something done - do it.
>
> That includes re-writing man pages.
>
> Or merely changing them and emailing a diff to the
> maintainer.
>
> --
> Dave Blake
> [EMAIL PROTECTED]
I'm not a real fan of man pages. But are an essential tool. I think I
will take a man page and a seperate book(with examples) over windows
help files that are bigger than the actual application.
Go buy a book that has examples in it and use the man pages as a
reference. I think that's all they are intended for.
Chris
------------------------------
Subject: Re: How do you read core dump on Linux?
From: Craig Kelley <[EMAIL PROTECTED]>
Date: 26 Jan 1999 16:43:36 -0700
[EMAIL PROTECTED] writes:
> Someone ran a program on one of my machines, and then left the process
> running, but deleted the original file. I killed the process so that it
> dumped a core file, but I'd like to examine the core file to exactly what the
> process was doing.
man gdb
look at the -core option
--
The wheel is turning but the hamster is dead.
Craig Kelley -- [EMAIL PROTECTED]
http://www.isu.edu/~kellcrai finger [EMAIL PROTECTED] for PGP block
------------------------------
From: Olof Wolgast <[EMAIL PROTECTED]>
Subject: trying to write a module which uses parallel port, but inb( port ) is
Date: Fri, 29 Jan 1999 20:01:55 +0100
I got my hands on a module which is supposed to create a link to your
texas-calculator using the parallel port. It didn't work, so I sat down
and went searching in the code. I'm not at all experienced in kernel
programming, but I tracked it down to this: inb( port ) always returned
74. It doesnt matter what was written in the other end or what is
written from the computer, the return value from inb is always 74. I
know that the hardware is correct, because it works under dos, and the
shematic for the cable is very easy to check with an ohm-meter. I
haven't any support for lp in the kernel, so that shouldn't affect. What
can be the problem? The code is about 1.5 years old, does that old code
work with recent( 2.0.36 ) kernels? I've heard the reverse.
Besides, is there a good way to print out variables from the kernel?
Like you can in a normal program with printf
Grateful for help
//Olof Wolgast
------------------------------
From: James Youngman <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Modest next goal for Linux
Date: 28 Jan 1999 22:57:43 +0000
Loren Osborn <[EMAIL PROTECTED]> writes:
> When displaying a simple (no special options & no color) ls, ls only
> reads each *directory* where there are files... The directory contains
> the filename and i-node location only, and that's all the info a simple
> ls needs.
>
> When displaying a color ls (or even an 'ls -l' with color turned off),
> ls needs to open every single i-node to gather such info as file
> permissions, file-size, owner, etc. Try it. You should find that a
> color ls should take just about as long as an 'ls -l' with color turned
> off.
ls -F or ls -s may also be good comparisons.
--
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet
------------------------------
From: "Berto" <[EMAIL PROTECTED]>
Subject: Infos an�bout Intel's Manual Reference (i386+)
Date: 28 Jan 1999 22:38:12 GMT
I'm Sorry for my bad English, I'm a Italian student and a I would like to
know about low level Linux programming (assembler).
I found some infos on Intel site but I've got some Time downloading
problems!! (Intel site go slonly from Italy). I search another site for
this info
Thank to all anyway.
------------------------------
Date: Tue, 26 Jan 1999 16:19:36 +0100
From: Harald Boegeholz <[EMAIL PROTECTED]>
Subject: how to find size of block device like /dev/hda
Hello,
I'd like to access a hard disk as directly as possible for benchmarking
purposes. So far I have come up with the idea of using the raw device
file, e.h. /dev/hda. How do I find out the size of the corresponding
disk? A simple call of stat() on the device returns a size of zero :-(
Thanks
--
Harald Boegeholz <[EMAIL PROTECTED]> (PGP encrypted mail preferred)
Redaktion c't Tel.: +49 511 5352-300 Fax: +49 511 5352-417
http://www.heise.de/ct/Redaktion/bo/
int f[9814],b,c=9814,g,i;long a=1e4,d,e,h;
main(){for(;b=c,c-=14;i=printf("%04d",e+d/a),e=d%a)
while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;}
(Arndt/Haenel)
Oft ist das Denken schwer, indes
Das Schreiben geht auch ohne es.
Wilhelm Busch
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Why I'm dumping Linux, going back to Windblows
Date: 28 Jan 1999 15:33:57 -0800
[EMAIL PROTECTED] writes:
>In article <[EMAIL PROTECTED]>, doug says...
>
>>Linux does not have to be for everyone, and perhaps
>>should not. Doug
>
>Linux can be made easier to millions more with very small effort.
>Such as what people are talking about here: adding examples in man
>pages.
>
>We can do small things that will have large effects to make Linux
>easier.
>
>offcourse, this all requires Linux people have more open mind about this,
>and not be too stubburn and want to close the doors to new users too
>quickly just becuase someone is walking in slower than they did.
Linux people are all users of linux.
What you think about them is largely irrelevant.
If you want linux improved, improve it. There is nothing
to keep anyone from making any changes they want and
distributing them as widely as they wish. That is the
strength of the GPL operating system. No one owns it. You
don't have any marketing engineer to talk to about what
options you want. If you want something done - do it.
That includes re-writing man pages.
Or merely changing them and emailing a diff to the
maintainer.
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: "Aaron Perrin" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: COM for Linux?
Date: Fri, 29 Jan 1999 15:11:43 -0400
Does anyone know if a Component Object Model (COM) port is available for
linux?
If not, is any group or company planning or developing such a port?
I'd like to work on some applications for linux that would utilize
distributed COM
components, and I want to know if this is possible.
Thanks,
Aaron Perrin
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: disheartened gnome developer
Reply-To: [EMAIL PROTECTED]
Date: Tue, 26 Jan 1999 02:54:57 GMT
On Mon, 25 Jan 1999 23:31:37 GMT, steve mcadams <[EMAIL PROTECTED]>
wrote:
>[Snipped for brevity, quoted material marked with ">"]
>On 25 Jan 1999 00:07:23 -0800, Michael Powe
><[EMAIL PROTECTED]> wrote:
>
>>for bank services, in order to drive them away. One banker says, "we
>>don't want losers who keep less than $1000 in their accounts and pay
>>off their credit cards on time every month."
>
>Cool, those idiots will go broke in no time because it's not the
>losers who keep less than $1000 in their (non-interest-bearing)
>accounts and pay off their credit cards monthly.
The overall effects are fairly interesting, due to the separation of
responsibilities.
VISA and MasterCard get their 1.5% "pound of flesh" out of retailers;
they leave (or so it certainly appears) the profits from interest to the
banks that issue the cards.
If the bank doesn't get a penny except on interest charges, then a "big
spender" that doesn't carry a balance may be VISA's "best friend," the
fact that the bank has to capitalize the "grace period" makes them hate
that big spender.
This makes the push for "debit cards" and "VISA Check Cards" make a
whole lot more sense. VISA doesn't care; banks do...
--
OS/2: Why marketing matters more than technology...
[EMAIL PROTECTED] <http://www.hex.net/~cbbrowne/lsf.html>
------------------------------
From: [EMAIL PROTECTED] (jedi)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Why I'm dumping Linux, going back to Windblows
Date: Fri, 29 Jan 1999 14:06:41 -0800
On 29 Jan 1999 09:52:05 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>, Chris says...
>>
>
>>Go buy a book that has examples in it and use the man pages as a
>>reference. I think that's all they are intended for.
>
>This is a silly argument thrown with no thinking behind it.
>
>"go buy a book with examples"
Actually, examples might be something better suited
to printed media regardless of whether or not you
bought it or dumped it from a pdf file from the redhat
CD. This tends to be the case for me with some of the
better HOWTOs. They are essentially highly detailed
examples.
>
>It seems that people has lost all common sense.
>
>Now, tell us, which books should I buy that will give me an example of how
>to use each Unix command?
>
>How much will these books cost?
>
>I think people are mixing two main issues here, the first is that one
>should offcourse understand concepts and ideas about the system, and
>this is the long term goal, and something that happen with time and
>by reading books.
>
>The second is the issue of how to help people figure how to do things in
>the short term, so that not every little bit of difficulty becomes an
>all time consuming task.
>
>Some of the good books to help someone learn about Unix are:
>
>Unix power tools.
>Unix secrets
>essential system adminstration
>Linux the complete refererence
>Unix for the impatient
>Linux man by redhat
>
>Now, man pages with examples help one in the second case above, while books
>will help with the first case. It is also not the case where one will
>have a book next to them when they need it. and it is not the case that
>the book they will have will contain an example of how use the command
>they need to use at the time. And it is also much faster to have the examples
>in the man page where one can quickly find it.
>
>
>Bill.
--
Herding Humans ~ Herding Cats
Neither will do a thing unless they really want to, or |||
is coerced to the point where it will scratch your eyes out / | \
as soon as your grip slips.
In search of sane PPP docs? Try http://penguin.lvcm.com
------------------------------
From: Ronald Cole <[EMAIL PROTECTED]>
Subject: Re: libc5 and glibc
Date: 29 Jan 1999 15:30:24 -0800
Johan Kullstam <[EMAIL PROTECTED]> writes:
> in order to avoid unmounting problems with new kernels, i have
> compiled my init statically (albeit with glibc).
You should have just upgraded to a glibc that didn't suffer from this
problem. Perhaps 2.0.x, where x > 6...
--
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 PGP fingerprint: 15 6E C7 91 5F AF 17 C4 24 93 CB 6B EB 38 B5 E5
------------------------------
From: Michael Powe <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: disheartened gnome developer
Date: 28 Jan 1999 18:31:42 -0800
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
>>>>> "Marcin" == Marcin Krol
>>>>> <[EMAIL PROTECTED]> writes:
>> The destruction is inherent to the market.
Marcin> Really? When customer and farmer argue about price and
Marcin> finally settle it down, where is destruction in that?
A far more common scenario is one in which the customer makes a deal
with the transport agent, who then refuses to deliver goods to any
market except that of the customer. The farmer, faced with selling to
said customer or losing his goods altogether, then "makes a deal."
This was standard 19th Century American capitalism.
>> Greed is nothing more than sucking as much as possible from the
>> economy,
Marcin> Greed is human characteristics, not political
Marcin> characteristics, stupid.
Fortunately, your lack of manners is not a human characteristic, but
one of persons not brought up in a proper home. You have my sympathy
for your deprivation.
>> Even the corporations, billionaires, and politicians all
>> understand that capitalism is destructive; they ceased to
>> believe in it after the Great Depression.
Marcin> Actually, Great Depression was caused by government, or
Marcin> Federal Reserve ineptly replacing clearing system worked
Marcin> out by banks, which successfully defended against runs on
Marcin> banks on the beginning of 20th century for example.
A shame your expertise does not match your presumption. The 19th
Century and early 20th Century were just a long cycle of economic
growth, recession and depression. I don't know to what "runs on
banks" you are referring, or why, since the major economic problems of
recessions are not associated with these.
>> and it works at least an order of magnitude more efficiently
>> than capitalism.
Marcin> Now you are selling pure bullshit. What evidence of this
Marcin> supposed "efficiency" you have?
linux vs Windows.
>> corporations. Despite this, coops have a FAR lower failure rate
>> than other corporations. The body of evidence for socialism is
>> staggering.
Marcin> Actually, the body of evidence against socialism is
Marcin> staggering. There were lots of various flavors of
Marcin> socialism, all of them failed.
There's no such body of evidence. All the evidence is that
cooperative projects are far more effective in reaching goals than
tooth-and-claw competition. Certainly, cooperation is more effective
than the monopolistic capitalism which you unthinkingly worship.
mp
8<---------------how-easy-is-it-to-demunge-an-address?------------------->8
#! /usr/bin/perl # if you are [EMAIL PROTECTED] (Another Luser):
while ($line = <>){ if ($line =~ m/^\s*$/ ){ last; }
if ($line =~ m/^From: (\S+) \(([^()]*)\)/){ $from_address = $1; } }
if ($from_address =~ m/\S+NOSPAM\S+/){ $x = index($from_address, NOSPAM);
substr($from_address, $x, 6+1) = ""; printf("The real address is %s\n",
$from_address);}else { printf("No munge, just plain %s\n",$from_address);}
printf("\nBrought to you by the Truth In Mail Headers Foundation\n");
8<-----------------------here's-one-example------------------------------>8
- --
Michael Powe
[EMAIL PROTECTED] http://www.trollope.org
Portland, Oregon USA
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v0.9.0 (GNU/Linux)
Comment: Encrypted with Mailcrypt 3.5.1 and GNU Privacy Guard
iD8DBQE2sR2C755rgEMD+T8RAhtGAJwMLHuY/7rss+Fkv57ZWm7YaPXVvQCeNxac
JMKwM6xYFcq2ZS3/UvaIX9s=
=6btN
=====END PGP SIGNATURE=====
------------------------------
From: A James Lewis <[EMAIL PROTECTED]>
Subject: raid 990128 (I must be mad, but I love it!)
Date: Fri, 29 Jan 1999 03:06:51 +0000
I have been very impressed with the latest alpha raid stuff (0.90), I was
playing and managed to create a mirror where both halves were on remote
machines using loopback device and NFS... that's sick I know but...
I wondered it this error might point somone to a bug in the more stock
kernel....
Everything works... but I gradually get loads of these:-
Jan 29 02:55:47 eye kernel: ll_rw_block: Trying to read nonexistent block-device 00:02
(0)
Jan 29 02:56:18 eye last message repeated 19 times
I don't think it's a practical config except in some very odd cases..
network block device would be better anyway... but it's impressive that
it even tried!
Comments?
James ([EMAIL PROTECTED])
Vortex Internet
My operating system unders~1 long filena~1, and yours?
------------------------------
From: [EMAIL PROTECTED] (Ian D Romanick)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Linux Unix98 (?) Certification (was Re: Microsoft is Exactly Like a
Fermenting Jug of Grape Juice...)
Date: 29 Jan 1999 16:42:19 -0800
Simon Kinahan <[EMAIL PROTECTED]> writes:
>Christopher Browne wrote:
>> The problem with UNIX98 compliance is that it requires including
>> STREAMS, which is a feature that many on the kernel team *STRONGLY*
>> oppose.
>Interesting. Why is STREAMS required ? and why are people opposed to it ?
>As I understand it, it is just an alternative way of doing what is normally
>done with sockets.
Replace "alternative" with "slow". I've done streams programming and I
don't like it. It's not a bad idea, but it it WAY over complicated, and
suffers because of it.
--
"But art is the process of evoking pity and terror. Art. Masturbation.
What modern artists do is pseudo-intellectual Whatever.
masturbation." http://www.cs.pdx.edu/~idr
-- Stranger In A Strange Land
------------------------------
** 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 (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
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-Development-System Digest
******************************