Linux-Misc Digest #577, Volume #19 Tue, 23 Mar 99 14:13:11 EST
Contents:
HELP! Wierd terminal mojo happening!!!!! (Wes Yates)
Re: Want to: $ exec_dosemu "dosprog.exe filename.ext" (Lew Pitcher)
Re: Why Linux still isn't my standard boot-up OS, or what are the Linux-equivalents
for these Windoze programs? (Desmond Coughlan)
Re: Linux as fileserver useable? (Desmond Coughlan)
Re: csh scripts won't run (Rob Fisher)
Re: 2.0.30 Kernel issues ([EMAIL PROTECTED])
Re: Options for a script (Ernesto =?US-ASCII?Q?Hern=E1ndez-Novich?=)
Problems with Adaptec 2940UW card! ([EMAIL PROTECTED])
Re: Large (1MB) writes ("Norm Dresner")
Keyboard Problems (David J. Devejian)
Re: Win95 X-software suggestion (Chris Green)
Re: Why Linux still isn't my standard boot-up OS, or what are the Linux-equivalents
for these Windoze programs? (Chris Green)
Re: csh scripts won't run ([EMAIL PROTECTED])
Unusual number of posts differing only in date ??? (Bengt Richter)
Re: Economics of OSS: What do you think? (Matthew D Allen)
Re: Internet Phone for Linux? (Edwin Johnson)
Installing GNU Libc2 on Slackware 3.2 (Kernel 2.0.29) (MeurerC)
Re: what "rc" scripts exist for linux? (david parsons)
Re: RH Linux: Bizarre wtmp/utmp, log file, and file date problems (NF Stevens)
Re: Porting Com from NT to Linux (Tom Evans)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Wes Yates)
Subject: HELP! Wierd terminal mojo happening!!!!!
Date: 23 Mar 1999 13:56:09 GMT
I would have researched this on Dejanews first, but I
don't even know what keywords to use for this. so here
goes.
As of today's date 04-23-99, I have been having some wierd
things happen in terminal mode or "term". I am running
Red Hat 5.1 with kernel 2.2 and have for some time now with
no problems. Just since today I have noticed a strange thing.
First I logged out of KDE to check mail (it's quicker) and
then I ran "top -d2" to see some process stats (memory, swap,
etc). It didn't run and gave me:
$root $root $root $root $root
when I pressed return instead of
$root
$root
$root
etc...
At the prompts, keyboard input wouldn't show up until I exited
and relogged in. In X, the same thing happens and I have to
exit and start a new term.
I tried to shutdown, but when I ran "shutdown -h now" it said
that "shutdown" couldn't be found. I could halt by /sbin/shutdown...
but not by using "shutdown ..." at the prompt.
I tried tail'ing the /var/log/messages but it wouldn't tail or head.
I couldn't cat either, but I got a prompt so my terminal was
working, right?
I also noticed that the system messages stopped recording on the
21st of March and nothing since.
When I rebooted, nothing seemed to show up. No disasterous
messages or other reports. Since the system hasn't been logging
messages I can't figure out what has been going on.
I so have backups in three week rotations so I'm not worried about
loosing or having to replace data and every thing else seems to be
working perfectly (X, KDE, the network connections, Appletalk,
Samba, etc.) jsut my terminal and some basic apps aren't functioning.
How can I fix this simply? I can reinstall items from the RPMs, but
i'm afraid that might get rid or change some of my /etc files or
something. I guess I could untar the backups (yes I do a simple
tar. no laughs please...) and restore, but is there an easier
way?
Thanks for the help and if there is any more information you
might need, just ask. This is annoying!!!
-Wes Yates
Belk Printing Technologies
IT Technician
------------------------------
From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: Want to: $ exec_dosemu "dosprog.exe filename.ext"
Reply-To: [EMAIL PROTECTED]
Date: Tue, 23 Mar 1999 13:18:16 GMT
On Tue, 23 Mar 1999 03:29:43 GMT, [EMAIL PROTECTED] (Dan Winker) wrote:
>Can I do that? Specifically, I have a cross compiler that runs on
>Linux and produces assembly code. The best assembler I can find is
>for DOS. I want to use this as part of my makefile:
>
> sxos.hex : sxos.asm
> unix2dos sxos.asm
> exec_dosemu "spasm sxos.asm"
> dos2unix sxos.hex
>
> sxos.asm : sxos.c
> c2c sxos.c
>
>What would be even better would be if I could leave the DOS box open
>all the time and just send commands to it to be executed. I have a
>feeling that's possible in a general sense - isn't it possible to
>just send keystrokes to an xterm window?
I'm not sure about feeding dosemu from Linux, but you could turn the
problem around a bit.
How about running an MSDOS make from within Dosemu (there used to be a
number of quasi-free 'make' applications for MSDOS)? DosEmu has a
unix.exe command that allows you to run unix programs from within
DosEmu, in the manner that you'd like to run DOS programs from Linux.
Your makefile changes a bit, and becomes...
sxos.hex : sxos.asm
UNIX unix2dos sxos.asm
spasm sxos.asm
UNIX dos2unix sxos.hex
sxos.asm : sxos.c
UNIX c2c sxos.c
and is run, in DosEmu, by something like NMAKE.EXE
Lew Pitcher
System Consultant, Integration Solutions Architecture
Toronto Dominion Bank
([EMAIL PROTECTED])
(Opinions expressed are my own, not my employer's.)
------------------------------
From: Desmond Coughlan <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,linux.redhat.misc
Subject: Re: Why Linux still isn't my standard boot-up OS, or what are the
Linux-equivalents for these Windoze programs?
Date: 23 Mar 1999 15:30:35 +0100
Dave Philips <[EMAIL PROTECTED]> writes:
> | Which would you rather have: an OS which is easy to use, with pretty
> | windows and icons, which crashes at least once a day, or an OS which
> | doesn't have the above, but which never crashes?
> My windows under AfterStep are very pretty.:) You hear all the time how
> linux looks bad and maybe it does out of the box. But linux gives you the
> ability to make it look anyway you can think up. I think this results in a
> much better interface then Windows.
Oh, I agree. Yet people (my girlfriend included) often pooh-pooh
Linux, because it doesn't 'look good'. My girlfriend's laptop runs
Windows 98, and crashes about twice a day, a lot considering she
doesn't use it for what I'd consider 'heavy' stuff. My Linux server
has had 100 % availabilty for six weeks now, with eight users, web,
ftp, and print access.
Like I say ... I've chosen. And it's not Zanussi !! ;-)
--
Desmond Coughlan |Restez zen ... Linux peut le faire
[EMAIL PROTECTED]
[www site under construction]
------------------------------
From: Desmond Coughlan <[EMAIL PROTECTED]>
Subject: Re: Linux as fileserver useable?
Date: 23 Mar 1999 15:32:57 +0100
[EMAIL PROTECTED] (Konstantin Wiesel) writes:
> Does anybody use Linux as fileserver and can tell about his experiences
> especially compared to other Networking OS like Netware/NT.
I run a Linux fileserver at home, with no problems. I also administer
a couple of hundred NT servers at work. The latter hit the deck more
frequently than Madonna's knickers.
--
Desmond Coughlan |Restez zen ... Linux peut le faire
[EMAIL PROTECTED]
[www site under construction]
------------------------------
From: Rob Fisher <[EMAIL PROTECTED]>
Subject: Re: csh scripts won't run
Date: Tue, 23 Mar 1999 13:21:37 +0000
Reply-To: [EMAIL PROTECTED]
> I just installed Caldera 1.3 and I have not been able to run a csh script.
>
> The script runs fine on SunOS. If I run it on Linux, it gives me Command
>
> not found even if I do ./ If I take out the /!#/bin/csh,
I suppose this could be a typo in your post, but it should be #!/bin/csh
> I get a few
>
> errors when it tries to run if else and while do statements.
That's because bash is trying to execute it, and bash follows Bourne
shell syntax.
> My user account is setup right. What could be wrong? Can I run csh
>
> scripts on Linux? Caldera 1.3?
Does /bin/csh actually exist? If not, do a "which csh" to find out where
csh is - if you have one. I've never seen Caldera, but I'm guessing that
it has tcsh and that the /bin/csh link isn't there. If I'm right, create
that link!
I'm not going to start a ksh/csh flame war, but I really think it's
better to write scripts to run through the Bourne shell. Every Unix box
in the world has a shell that will run them, be it sh, ksh, bash or
whatever - they should be 100% portable. Plus you don't have to work
round any of csh's brain dead behaviours.
Rob
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: 2.0.30 Kernel issues
Date: 23 Mar 1999 16:28:04 GMT
Jerald Jackson <[EMAIL PROTECTED]> wrote:
> I am attempting to locate a list of issues that were found with 2.0.30.
> Specifically anything that would cause boxes to hang unexpectedly.
> These are all machines that are composed of different hardware, some of
> it new and some of it older. Purusement of the logs indicate only that
> a restart occured and no errors. There are no core files and this can
> happen as often as once a month or three times a week.
> Is there anyone who knows of a place to locate information on older
> kernels?
www.dejanews.com -- Power Search, limit groups to *linux* -- the way to
go for practically all your info searching needs.
Good luck.
--
====================================
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
------------------------------
From: Ernesto =?US-ASCII?Q?Hern=E1ndez-Novich?= <[EMAIL PROTECTED]>
Subject: Re: Options for a script
Date: 23 Mar 1999 13:23:26 GMT
Jaze <[EMAIL PROTECTED]> wrote:
: I am currently unable to access any documentation due to my limited
: resources but I need to know how I can pipe the output of multiple
: commands to a single command. Basically, what I'm trying to do is pipe
: echo, date, and cat commands to sendmail to automate a certain message.
: Doing echo "Blah"; date -R | sendmail [EMAIL PROTECTED] executes the echo and
: then pipes only the date to sendmail. How can I pipe a full command line?
Use a subshell.
$ ( echo one ; echo two ; echo three ) | wc -l
3
$ ( echo foo ; date -R ; echo bar ) | sendmail [EMAIL PROTECTED]
Hope this helps
--
Ernesto Hern�ndez-Novich - [EMAIL PROTECTED] - Running Linux 2.2.1
Just another Unix/Perl/Java hacker.
One thing is to be the best, and another is to be the most popular.
Unix: Live free or die!
------------------------------
From: [EMAIL PROTECTED]
Subject: Problems with Adaptec 2940UW card!
Date: Tue, 23 Mar 1999 12:42:21 GMT
Hi,
I have a linux box here with an adaptec scsi card, connected on the internal
68pin is one 4gig scsi drive, and external are 2 more 68pin HD's with 50 pin
convertors on them. The problem is that when the external HD's are plugged
in, the adaptec card reads them fine, but I had to turn parity off on the
card itself as linux just froze when doing a scsi probe on the HDs during
installation. Now when I turn parity off, linux does recognise the 2 external
drives as well as the internal drive, BUT...the internal drive then becomes
corrupted and Linux reports strange results for that drive, for example when
I go to select a swap partition type on the internal drive, it keeps
switching it back to linux native type. Occassionally linux fdisk will report
that the internal drive's parition table is corrupt and that it is not in
fact a linux partition. This is to do with the external drives as when you
disconnect the external plug, the internal drive works fine!! I have tried
different settings like terminators etc, but no go. Does anyone know what
could be causing this?
Cheers,
- Trevor
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: "Norm Dresner" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Large (1MB) writes
Date: 19 Mar 1999 22:54:53 GMT
Are you using ftape or something else?
Norm
Michael Nolan <[EMAIL PROTECTED]> wrote in article
<7csvh7$iap$[EMAIL PROTECTED]>...
> In article <01be6f0d$c3f628e0$c3ed4e0c@nilrem>,
> Norm Dresner <[EMAIL PROTECTED]> wrote:
> >> Are there any drivers to do large (1MB) tape read and write? The limit
> >> in 2.0.xx was ~64k, but if we can't do at least 1MB, we're stuck with
> >> Solaris.
> >>
> > Why not modify the original or write your own; that is, after
> >all, one of the most important things about Open Source, n'est pas?
>
>
> As I understand the source, it uses a buffer deep within the kernel that
> I was unable to figure out, and would not lightly change. If there's
> another way, I'll do it, including mallocing buffers in the driver:
> I'll happily trade memory for speed in this case.
>
>
> -Mike
> --
> Mike Nolan +1 809 878 2612 ext 280 Fax: +1 809 878 1861 [EMAIL PROTECTED]
> Arecibo Observatory/Cornell University POBox 995, Arecibo, Puerto Rico
00613
>
------------------------------
From: [EMAIL PROTECTED] (David J. Devejian)
Subject: Keyboard Problems
Date: Tue, 23 Mar 1999 12:32:09 -0500
I am having some trouble with my keyboard and linux (2.0.36). I have
read the Keyboard HOWTO, but it hasnt seemed to help:
Currently, the console is locked at a login screen. The screen
blanking function works, and clears when I hit a key, but the login
prompt doesnt appear to be recieveing any key strokes. If I telnet in
from another machine, the shell will work for a while, but eventually
stops, and no more input appears. This does not matter which telnet
client I use (Im coming from a windows machine with both the windows
standard telnet client, and Interaccess's client).
Further, I cannot reboot. Well, I suppose I could if I hit the BRB,
but Im trying not to do that. When I telnet in, change to root via
su, and issue a "shutdown -r now", the system warns of the shutdown,
but does not go down. I assume there is an implied warn only since I
am coming from a telnet client, but I am not sure how to circumvent
this.
One further note is that I am accessing the Linux box via a BlackBox
ServSwitch, which allows one to control several machines from a single
keyboard and monitor. Could that be makeing a difference? I wouldnt
think so since this appears to affect telnet sessions as well.
Thanks in advance for any help you can offer.
--
regards,
David J. Devejian
widsith <at> panix <dot> com
------------------------------
From: Chris Green <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux.slackware,comp.os.linux.x,comp.os.linux.setup,comp.os.linux.networking,linux.redhat.misc
Subject: Re: Win95 X-software suggestion
Date: 23 Mar 1999 15:08:22 GMT
In linux.redhat.misc Bob Deep <[EMAIL PROTECTED]> wrote:
> Jon Slater wrote:
>>
>> I want to be able to run X on my Win95 box. I am connecting to a RedHat
>> Linux 5.2 box.
>>
>> Any suggestions?
> There is another package called hummingbird or something like that.
> Kind of expensive, but nice.
> SCO also sells an X Server (Xview I think), but it's junk. I unloaded
> it as soon as they installed it at work. I just split my local hard
> disk and ran linux instead. Nobody ever knew...
There are a *lot* of X servers for 32-bit Windows, I found a page with
links to many of them when I was searching for a good one.
Unfortunately I've not bookmarked it.
I've tried quite a number, of those I can remember the following:-
XDeep/32 - OK, $49 so very cheap, but wouldn't work with my
3-button mouse so not so good for me.
XWin-32 - This is what I use now, not *too* expensive and
everything works for me under NT4.
MI/X - Free but limited
Many others I tried disagreed horribly with my Windows NT virtual
window manager. Most have free trials so you can try before you
buy.
--
Chris Green ([EMAIL PROTECTED])
Home: [EMAIL PROTECTED] Work: [EMAIL PROTECTED]
WWW: http://www.isbd.co.uk/
------------------------------
Crossposted-To: alt.os.linux,comp.os.linux.help,linux.redhat.misc
Subject: Re: Why Linux still isn't my standard boot-up OS, or what are the
Linux-equivalents for these Windoze programs?
From: Chris Green <[EMAIL PROTECTED]>
Date: Tue, 23 Mar 1999 15:11:03 GMT
Other people have answered most of your questions but if batch
conversion is what you are looking at, you should mess with simple
shell scripting and the ImageMagik program convert.
convert foo.jpg foo.png :)
> A good image program equal to Paint Shop Pro. With only one musthave
> option. Batch conversion. Convert a bunch of image files into another
> file system with only three clicks.
--
Chris Green <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
To err is human, to moo bovine.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: csh scripts won't run
Date: 23 Mar 1999 14:21:18 GMT
In his obvious haste, Rey Rios <[EMAIL PROTECTED]> babbled thusly:
: I just installed Caldera 1.3 and I have not been able to run a csh script.
: The script runs fine on SunOS. If I run it on Linux, it gives me Command
: not found even if I do ./ If I take out the /!#/bin/csh, I get a few
: errors when it tries to run if else and while do statements.
:
: My user account is setup right. What could be wrong? Can I run csh
: scripts on Linux? Caldera 1.3?
Have you got csh installed? (That seems most likely).
Try reinstalling it...
--
______________________________________________________________________________
|[EMAIL PROTECTED]| |
| Andrew Halliwell | "The day Microsoft makes something that doesn't |
| Finallist in:- | suck is probably the day they start making |
| Computer science | vacuum cleaners" - Ernst Jan Plugge |
==============================================================================
|GCv3.12 GCS>$ d-(dpu) s+/- a C++ US++ P L/L+ E-- W+ N++ o+ K PS+ w-- M+/++ |
|PS+++ PE- Y t+ 5++ X+/X++ R+ tv+ b+ DI+ D+ G e>e++ h/h+ !r!| Space for hire |
==============================================================================
------------------------------
From: [EMAIL PROTECTED] (Bengt Richter)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.hardware
Subject: Unusual number of posts differing only in date ???
Date: 19 Mar 1999 22:55:59 GMT
Is there a problem in the delivery chain somewhere?
I can't believe so many folks are re-posting their
stuff...
Regards,
Bengt Richter
------------------------------
From: [EMAIL PROTECTED] (Matthew D Allen)
Crossposted-To: gnu.misc.discuss,comp.os.linux.advocacy
Subject: Re: Economics of OSS: What do you think?
Date: 23 Mar 1999 12:57:53 -0500
Phil Varner <[EMAIL PROTECTED]> writes:
>I'm writing a paper on "The Economics of Open Source" for one of my
>classes. I've read most of the literature and am seeking
>comments/experiences/etc. from people involved in commercial OSS
>ventures. Any information would be a great help.
>Thanks in advance,
>Phil Varner
First, not to be a stickler, because I don't enjoy hearing people argue over
strict terminology any more than anybody else does, but this is important,
try renaming your paper to "The Economics of Free Software".
If you need some references for your paper, one of the first places you stop
for info should be www.redhat.com - they have some information on their
actual business there, and god knows they're making skads of money off of
Free Software. Then maybe try some other places that distribute linux like
www.suse.de or whatever caldera's site is.
You might also want to try looking up information on IBM's "Jikes" java
compiler if you're interested in writing on "Open Source" rather than "Free
Software" - also, definately see www.opensource.org if you want to do about
Open Source, they have lots of information on the economics around open
source.
David Allen
--
http://opop.nols.com/index.shtml - Linux software development
There are three kinds of people: Those who can count, and those who can't.
------------------------------
From: [EMAIL PROTECTED] (Edwin Johnson)
Subject: Re: Internet Phone for Linux?
Reply-To: [EMAIL PROTECTED]
Date: 23 Mar 1999 14:13:47 GMT
I've looked into several apps. Look at these two urls:
www.inria.fr/rodeo/fphone
This is a nice implementation and comes for Win(ugg!) as well as Linux. You
have to have Direct X and the TKX,TKL libs on the Win machine, but it is
easy to install.
www.fourmilab.ch/speakfree/unix
The speakfree does, indeed come for both environments. In fact, I've used
the Linux variety with another communication program in Win. You have to
experiment with the various protocols available.
Hope this helps. ...Edwinn
On 22 Mar 1999 08:16:01 -0600, Tim Mavers <[EMAIL PROTECTED]> wrote:
>Does anyone know of any Internet Phone applications that are available for
>Linux? These allow two (or more) people to talk voice over the Internet
>(through their computers, not necessarily over normal phones). I have been
>using Vocaltec's Internet Phone (for Win32) and am trying to find an
>equivalent in Linux.
>
>The application must be able to talk to other people that are using
>Windows-based phone programs (like IPhone or CUSeeMe). No good if I can
>only talk to Linux-based users.
>
>I found something called SpeakFreely (www.speakfreely.org), but it looks
>like it is only for Win32.
>
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Edwin [EMAIL PROTECTED] ~
~ http://www.prysm.net/~elj ~
~ ~
~ "Once you have flown, you will walk the ~
~ earth with your eyes turned skyward, ~
~ for there you have been, there you long ~
~ to return." -- da Vinci ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
From: [EMAIL PROTECTED] (MeurerC)
Subject: Installing GNU Libc2 on Slackware 3.2 (Kernel 2.0.29)
Date: 23 Mar 1999 18:04:19 GMT
Ok, first off, no flames for the AOL email address. I work here. =)
I've got slackware linux 3.2 installed at home. Recently I attempted to get
gnulibc2 onto my system. Everything (seemed) to go OK, and I installed them
into /usr/local/lib so that they didn't hurt anything.
After doing this, I had problems linking any programs... ld would complain that
xxx.so.5 conflicts with xxx.so.6 and xxx.so.1 conflicts with xxx.so.2 and so
on.
Not really knowing what else to do I thought maybe the problem was that I
hadn't installed them into /lib.
So, I ran configure --prefix=/usr and installed them into /usr and /lib. Big
mistake.
Still nothing compiled. I wasn't sure why. I tried to consult some of the
documentation online when I noticed that X wouldn't start.
So instead, I decided that I must have done a pretty bad thing, and thought I
could 'wing it' and get things working again. (this normally works for me,
but...)
so in a fit of naiveite i decided to go renaming the some of my libraries in
/lib.
a note to those of you who haven't figured it out yet: DON'T DO THAT!
The first one I picked was ld-linux.so
I thought I could just recreate my symlink and put it on my libc5 libs and get
things to work with the libc5 libs.. for some reason, after this, /bin/ls
didn't work. neither did mv, ln, ... just about anything. Even if the files
existed they wouldn't execute (strangely, ldconfig still worked).
So I whipped out my slackware cd, booted back into DOS, rawrote my bare.i boot
disk and rebooted. After doing that I reinstalled the libc4 and libc5 libraries
-- this allowed me to use programs again.
However, now, strange things are happening. My numlock key on my keyboard does
not activate the number pad. It only beeps if I hit any numbers on the 10-key.
Programs sometimes refuse to load, other times they work fine. ./configure
programs can no longer identify the host system type. in short, I'm totally
fuct.
If you've read this far, you must be one hell of a patient person. My question
is this: is there anything that I can do to restore my system to its normal
(pre-libc6) working order that does not involve fdisk?
thanks for the help
[EMAIL PROTECTED]
======
This .sig has no purpose.
------------------------------
From: o r c @ p e l l . p o r t l a n d . o r . u s (david parsons)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: what "rc" scripts exist for linux?
Date: 23 Mar 1999 09:36:57 -0800
In article <7d7lnt$[EMAIL PROTECTED]>,
Alexander Viro <[EMAIL PROTECTED]> wrote:
>In article <7d71sq$[EMAIL PROTECTED]>,
>david parsons <o r c @ p e l l . p o r t l a n d . o r . u s> wrote:
>>In article <7d4vv2$[EMAIL PROTECTED]>,
>>Alexander Viro <[EMAIL PROTECTED]> wrote:
>>>In article <7d4sd5$[EMAIL PROTECTED]>,
>>>david parsons <o r c @ p e l l . p o r t l a n d . o r . u s> wrote:
>>>> Basically because of the registry; it's an interesting idea to use
>>>> make, though, and the only problem I could see with doing that is
>>>> that the current rc setup has each file call in its prerequisites,
>>>> while make puts the prerequisites elsewhere -- for additional
>>>> packages, like syslog, dhcpd, and xdm/xterm, all I need to do is
>>>> drop the rc files into /etc/rc.d/init.d/ and build the symlinks
>>>> into /etc/rc.d/rc.m, while a makefile based system would require
>>>> that I also tweak the makefile.
>>>
>>>include /etc/rc.d/rc.m/*.mk
>>
>> Ah, so you'd make the whole shebang into makefiles, then just do a
>> `make multiuser' to start them all up. That's certainly better than
> Or make fragment makefiles call shell scripts if you like it better.
>Will work too.
>> carrying around a bunch of shellscripts and patches to the master
>> makefile. Though how would you maintain a registry showing when
>> each service started? -- if you just kill off services willy-nilly,
>> unkillable orphans will be left lying around (killing networking
>> before shutting down nfs has some, umm, antisocial consequences.)
> Huh?
>In the main makefile (or in fragment dealing with networking if it's separate)
>
>network_stop:
> <actions>
Okay, here's where we diverge.
My rc system doesn't assume that network will be starting; if a
script needs to have the network running, it makes the appropriate
call -- if the network is already running, nothing happens, but if
not it's started and registered. And since the rc system is handling
all of this, it can unravel the services when the runlevel is exited
without any further information in each rc script:
#!/bin/sh
#
# nfs -- mount or unmount network file systems
#
. /etc/rc.d/sysconfig
case "$1" in
start)
need network filesystems
echo -n "network file systems: "
mount -at nfs
echo "mounted"
;;
stop)
NFSDIRS=`awk '$3 ~ /nfs/ {print $2}' /etc/mtab`
if [ "$NFSDIRS" ]; then
echo -n "network file systems: "
# kill all processes that are using NFS volumes
fuser -km -HUP $NFSDIRS
sleep 2
fuser -km -KILL $NFSDIRS
umount -at nfs
echo "unmounted"
fi
;;
help)
echo "mount or unmount networked filesystems"
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
Since this is Unix, I want the option of being able to shoot myself
in the leg by turning off services without unravelling the whole
chain of dependencies (sometimes I have to; the dhcp client isn't
completely robust, and sometimes when it can't find a lease it just
exits instead of waiting a while to find another one. So a simple
/etc/rc.d/init.d/network stop;/etc/rc.d/init.d/network start <which
SHOULD be doable inside a gui, but I'm way too lazy> drags it back
o its feet. I certainly don't want to bring down, well, everything
just to restart the service, but I DEFINITELY don't want the end
user to have to dig around in a morass of Unix commands to restart
dhcpcd by themself.)
>Moreover, you can say
>MODLIST += nfs
>network_DEP += nfs
>in nfs.mk and in the end of the main makefile play with subst and foreach
>if you really are into macdinking and want everything happen automagically.
The complexity in each makefile begins to get somewhat daunting, I'm
afraid.
____
david parsons \bi/ Though I could probably do it as makefiles with
\/ the existing wrapper functions.
------------------------------
From: [EMAIL PROTECTED] (NF Stevens)
Crossposted-To: comp.security.unix
Subject: Re: RH Linux: Bizarre wtmp/utmp, log file, and file date problems
Date: Tue, 23 Mar 1999 18:08:59 GMT
Doug Stevenson <[EMAIL PROTECTED]> wrote:
>In all my years of UNIX sys admin experience I have never seen something
>so bizarre as this happen, first seen this morning on my Red Hat 5.2
>Linux system:
IIRC libc5 and libc6 write different formats to wtmp etc. I had
a lot of trouble with this when I upgraded to libc6.
Norman
------------------------------
From: Tom Evans <[EMAIL PROTECTED]>
Subject: Re: Porting Com from NT to Linux
Date: 23 Mar 1999 11:04:28 -0500
Eduardo Alperin <[EMAIL PROTECTED]> writes:
>
> Does anyone know a fast and practical way to port
> COM applications from NT to Linux or any other Unix on PC?
In theory, COM was suppose to be cross platform, I believe they
have solaris, and they announce they would have Linux support,
may want to ping the evil empire for any updates.
--
Tom Evans [EMAIL PROTECTED]
All disclaimers apply...
------------------------------
** 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.misc) 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-Misc Digest
******************************