Linux-Misc Digest #568, Volume #19 Mon, 22 Mar 99 17:13:09 EST
Contents:
Re: Names to call Windows... (Marc Sira)
Re: Enough!! What is the best Linux to install? ("[EMAIL PROTECTED]")
Re: printer HP 870cxi setting ? (Markus Kossmann)
Is there a reference for Bash shell scripts on the web? (Oracle startup script)
(Anubis)
Re: What is the best Linux to install? ("Rufus V. Smith")
disk druid ([EMAIL PROTECTED])
Re: Is there a reference for Bash shell scripts on the web? (Oracle startup script)
(Martin Huber)
Re: No-Win Modem Situation ([EMAIL PROTECTED])
Re: Networking HP855c w/ Ghostscript filter problem... (Grant Taylor)
RH Linux: Bizarre wtmp/utmp, log file, and file date problems (Doug Stevenson)
Viper 550 16mb support (Henry De Gregorio)
Re: bzlilo compile Kernel 2.2.3 error (please help) ([EMAIL PROTECTED])
Re: FS: LinuxRules.com (Jason Davis)
Re: Help with LILO? (Clemens Nijhof)
Re: No setup signature found (I can't believe no one knows!) (Thomas Zajic)
Re: Win95 X-software suggestion ("M. Brian Akins")
[Fwd: Corrollary SMP Systems - Linux ???] ("Kerkman, Tig")
RH5.2, SoundBlaster and mpg123 ([EMAIL PROTECTED])
Re: Is there a reference for Bash shell scripts on the web? (Oracle startup script)
(XU)
Announcing the release of GNU CSSC-0.10beta.pl0, an SCCS clone (James Youngman)
Re: Is there a reference for Bash shell scripts on the web? (Oracle startup script)
(Thomas Zajic)
crypt & passwd.c (caf)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Marc Sira)
Crossposted-To: comp.unix.bsd.freebsd.misc
Subject: Re: Names to call Windows...
Date: 22 Mar 99 20:13:45 GMT
In our last episode, Dominik Behr <[EMAIL PROTECTED]> said:
>> A floppy drive is ultimately just a slow serial device, and using one will be
>> CPU-intensive on any OS. The difference you observe is just due to the
>amiga uses cpu to read AND decode floppy data, yet it doesnt block other tasks
Sigh...I didn't say it would block other tasks (in any sense of the term
"block"); in fact, the fact that it doesn't under Unix was the point of the
discussion. Also, I said "any OS", not "any hardware", with the implication
being competitors to Windows. Reading a floppy probably doesn't particularly
tax a Commodore 64 CPU either, because it comes with its own washing machine
for that. Of course the problem can be solved - part of the point was that
it's not interesting or useful enough to be worth it any longer.
"CPU-intensive" just meant that you have an unbuffered or barely-buffered
serial device that acts like a crying baby when you want to read from it - you
can't ignore it. On a current system this probably isn't a big deal, because
floppies are slow and CPUs are fast, but for the time that the floppy driver
is in charge, it's really in charge. I probably should have said "interrupt-
intensive" - I need to look over the source again.
>pc FDC has two modes of operation: polled and interrupt, unfortunately BIOS
>uses POLLED mode and windows seems to do the same
>PC FDC supports interrupt on disk change but no OS supports it, why ?
Actually, doing polled I/O would tend to make the device more friendly (but
slower) in terms of getting in the user's way. I expect Windows doesn't work
that way, just cause it sucks so bad (might be wrong, though, it has plenty of
other reasons to suck - hey, I just inflated the sucks-vs-rules index :).
ObFreeBSD sidenote: I once replaced a 486/33 dialup server using a Digiboard
under Linux with FreeBSD 2.2.5 - Linux at the time lacked poll(2) (I think 2.2
finally has it, so that's cool), and the serial board interrupts brought the
machine to its knees. Using the FreeBSD polled digi driver it chugs along
quite nicely. Admittedly there's a lot more buffering there than in a floppy
controller. :)
--
Marc Sira | [EMAIL PROTECTED]
If you can't play with words, what good are they?
------------------------------
From: "[EMAIL PROTECTED]"
Crossposted-To:
alt.os.linux,comp.os.linux,comp.os.linux.setup,comp.os.linux.redhat,comp.os.linux.networking,alt.os.linux.slackware
Subject: Re: Enough!! What is the best Linux to install?
Date: Mon, 22 Mar 1999 20:13:24 GMT
On 22 Mar 1999 15:52:33 GMT, [EMAIL PROTECTED] (WhiteFox) wrote:
>Wimp. If you can just refrain from making insipid postings for a week or
>two, the answer to every possible question you have will scroll before
>your eyes. How about trying some things out and forming your own
>opinions?
Hey, WhitlessFoxBrain, why don't you use that massive intellect
and figure out how to just skip a particular thread if you don't
like it. Oooo, he's a grand exercise for the black matter in your
brain case--It's black matter instead of gray because your brain
is obviously dead--try a killfile. That's k-i-l-l-f-i-l-e. Got it
even-a-dumb-junior fox-has-more-sense wimp.
Nuclear test site available in my pants. Will Travel.
------------------------------
From: Markus Kossmann <[EMAIL PROTECTED]>
Subject: Re: printer HP 870cxi setting ?
Date: Mon, 22 Mar 1999 19:17:09 +0100
Yoram Benchetrit wrote:
>
> Hi,
>
> When I print a file with my printer HP 870Cxi I get,
> 'Unkown device: cdj850'
>
> I have installed ghostscript 5.50 which is supposed to
> contain the driver cdj850 for HP870cxi. But when I type
> gs --help I cannot see this driver in the list section,
> I dont know if the driver is really missing, or if the
> available driver section of gs --help is not updated ?
>
> If the driver is missing from gs, where can I find it
> and how to install it for having it available in gs ?
> (Do I need to compile and link gs with this driver?)
>
Well , the dj850 driver is a third party driver for ghostscript.
You can get the sources from
http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
and you have to recompile ghostscript from sources to get the driver
into ghostscript.
--
Markus Kossmann
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Anubis)
Crossposted-To: comp.databases.oracle.misc,comp.os.linux.questions
Subject: Is there a reference for Bash shell scripts on the web? (Oracle startup
script)
Date: Mon, 22 Mar 1999 14:04:35 -0600
Hello,
I'm looking for a reference for Bash shell scripts on the web.
Specifically, I'm trying to debug this script:
#!/bin/sh
#
# Set the ORA_HOME to be equivalent to the ORACLE_HOME
# from which you wish to execute dbstart and
# dbshut
# set ORA_OWNER to the user id of the owner of
# the Oracle database in ORA_HOME
ORA_HOME=/usr/app/oracle/product/8.0.5
ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
;;
The line "if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]" is being
choked on with the error: "[!: Unknown command"
This script was part of the Oracle install... grrr
Any help/pointers/url's would be appreciated
------------------------------
From: "Rufus V. Smith" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,comp.os.linux.setup,comp.os.linux.networking
Subject: Re: What is the best Linux to install?
Date: Mon, 22 Mar 1999 15:07:25 -0500
What's the best tasting fruit: Apples, Pears, Oranges, or Bananas?
If it's not in the FAQ's, it should be added.
Maybe we should all answer: Best? In What Way?
Or maybe someone should just set up a "Best" distro of Linux, maybe
at www.BestLinux.com and we could send them all there.
Then hire a guy name Best to be the webmaster.
Josef Drexler wrote in message <7d5t43$[EMAIL PROTECTED]>...
>In article "Re: What is the best Linux to install?", WhiteFox writes:
>> I think I'll throw up if I read one more post like this: What is the
>> best XXX to install?. As the original poster might be able to discern
>> from the eager replies, what's stopping you from testing the stuff and
>> forming your own opinion?
>
>Time constraints maybe? In order to really find out what would be the best
>distribution, you need to invest a lot of time.
>You have to install every one of them, maybe tweak them, work with them
>and
>then find out what the differences are. Then you need to decide what you
>deem important and select your distribution based on this.
>
>It would be reinventing the wheel, not trying to benefit from the
>experiences of others. Not having to do their errors again, just out of
>ignorance.
>
>If somebody doesn't have time to do this research on their own, why
>shouldn't they ask other people about their opinions?
>
------------------------------
From: [EMAIL PROTECTED]
Subject: disk druid
Date: Mon, 22 Mar 1999 19:09:53 GMT
I have Red Hat 5.1. What is the command to bring up the "Disk Druid" program?
Or is it only available during install?
Thank you
Daryl Rose
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: [EMAIL PROTECTED] (Martin Huber)
Crossposted-To: comp.databases.oracle.misc,comp.os.linux.questions
Subject: Re: Is there a reference for Bash shell scripts on the web? (Oracle startup
script)
Date: 22 Mar 1999 20:55:55 GMT
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Anubis)
writes:
>Hello,
>
>I'm looking for a reference for Bash shell scripts on the web.
>Specifically, I'm trying to debug this script:
>
>#!/bin/sh
>#
># Set the ORA_HOME to be equivalent to the ORACLE_HOME
># from which you wish to execute dbstart and
># dbshut
># set ORA_OWNER to the user id of the owner of
># the Oracle database in ORA_HOME
>ORA_HOME=/usr/app/oracle/product/8.0.5
>ORA_OWNER=oracle
>if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]
>then
>echo "Oracle startup: cannot start"
>exit
>fi
>case "$1" in
>'start')
># Start the Oracle databases:
>su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
>;;
>
>
>The line "if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]" is being
>choked on with the error: "[!: Unknown command"
>
>This script was part of the Oracle install... grrr
>
>Any help/pointers/url's would be appreciated
>
You need a space between the [] and any other character
if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ] ....
You may debug bash script by adding the line "set -x".
This prints to your terminal any line when it is executed, until
the end of the script or a "set +x" line.
--martin
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux,comp.os.linux.setup
Subject: Re: No-Win Modem Situation
Date: Mon, 22 Mar 1999 19:56:08 GMT
In article <[EMAIL PROTECTED]
access.att.net>,
Hugh Johnson <[EMAIL PROTECTED]> wrote:
> Wow, thanks for the responses, guys - and in email too. I guess I
> touched a nerve with this question.
Right! The Win Modems are coming in force. I think it's high time someone
hacked one. I am afraid, in a coup[le of years, plain old hardware modems will
disapear altogether... :( What will linux do?
Arkadiy
[EMAIL PROTECTED]
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: Grant Taylor <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Subject: Re: Networking HP855c w/ Ghostscript filter problem...
Date: 22 Mar 1999 15:55:24 -0500
Jon Slater <[EMAIL PROTECTED]> writes:
> Does anyone have any ideas what's going wrong? Is there some command
> line option that I've missed? Has anyone had success printing to the
> HP855c in color?
Yes, the 850 should work well with either the cdj850 driver or the
hpdj driver. The older "standard" Ghostscript drivers have less
support for HP's resolution enhancement modes.
You should be able to find a contrib RPM or whatever than includes one
or both of these drivers. (I know that the standard Debian package
includes at least one, so I guess you're not on Debian).
--
Grant Taylor - gtaylor@picante<dot>com - http://www.picante.com/~gtaylor/
Cellphone information: http://www.picante.com/~gtaylor/cell/
Libretto information: http://www.picante.com/~gtaylor/portable/
Linux Printing HOWTO: http://www.picante.com/~gtaylor/pht/
------------------------------
Date: Mon, 22 Mar 1999 16:07:13 -0500
From: Doug Stevenson <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: RH Linux: Bizarre wtmp/utmp, log file, and file date problems
Crossposted-To: comp.security.unix
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:
- New logins are no longer being reported with 'w', 'who', and 'last'
commands. Entries are being made to utmp/wtmp but I haven't verified if
they're correct. Rotating/removing these files doesn't help either.
- /var/log/secure is no longer being logged to (scary).
- The system date as reported by 'date' and last mod dates on new files
on all filesystems differ by exactly 5 hours, the file being 5 hours in
the future. Maybe this has something to do with EST timezone?
- The MAIL env var is being set to /spool/mail/login instead of the
proper /var/spool/mail/login. This causes mail apps to fail to find the
users incoming mail spool. Resetting this variable manually fixes
things.
Things I've tried doing to fix the problems:
- Rebooting the system (but not power cycling, it's remote).
- Messing with wtmp/utmp to manually reset their status.
- Moving the latest /var/log/secure file and restarting syslogd. The
entry for authpriv.* remains in /etc/syslogd.conf and other syslog files
are still working file.
- Resetting the date manually (timezone is correct).
The only things that make be believe that this might be a security
attack is the fact that /var/log/secure no longer works AT ALL and that
I can't get a traditional list of current logins any more. The other
things I could pass as a fluke or bug in the system. But I have found
nothing else out of the ordinary. The future file date issue is
terribly inconvenient, as well as the fact that I can't get a list of
current logins.
I found nothing on the Red Hat web site regarding these specific
issues. I did find a new syslogd there, but the fixes don't seem to
address specificically the problems with no security logs.
Any ideas? I'm at the edge of my wit...
Doug
------------------------------
From: Henry De Gregorio <[EMAIL PROTECTED]>
Subject: Viper 550 16mb support
Date: Mon, 22 Mar 1999 16:38:09 -0500
I am trying to setup my Diamond Viper 550 16mb graphics card. I
have installed Redhat 5.2, but Xconfigurator is not recognizing my
graphics card.
If anybody has suggestions on this problem please respond.
Thank You.
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux,comp.os.linux.development,comp.os.linux.questions
Subject: Re: bzlilo compile Kernel 2.2.3 error (please help)
Date: Mon, 22 Mar 1999 21:19:19 GMT
Ooops,
I think what you did was to take the linux_2.2.3 source, and untar it in
the /usr/src directory. If you did this without moving linux, or unlinking it
to linux_2.0.36, then what happened is that tar extracted the 2.2.3 source
straight into the linux directory, which is a sym link to linux_2.0.36 on
most distros. This will overright some of the original source, and leave
behind some of the old source. The end result is usually a source tree that
won't compile. To fix this, remove the old source tree, re-install it from
your distro, then move linux_2.2.3 to a safe directory, and then untar it.
Make the kernel, run the kernel, and if you are sure you want the upgrade,
then link /usr/src/linux to the 2.2.3 source tree.
Here is an example of commands
# cd /usr/src
# ls
linux linux_2.0.36 redhat
# file linux
linux: symbolic link to linux_2.0.36
# cp /home/linux_2.2.3.tar.gz /usr/src
# pwd
/usr/src
# mv linux linux_old_source
# ls
linux_old_source linux_2.0.36 linux_2.2.3.tar.gz redhat
# tar xvfz linux_2.2.3.tar.gz
# ls
linux linux_old_source linux_2.0.36 linux_2.2.3.tar.gz redhat
# file linux
linux/: Directory
# cd linux
# make xconfig
........ You know the rest.
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: Jason Davis <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.linux
Subject: Re: FS: LinuxRules.com
Date: Mon, 22 Mar 1999 15:05:25 -0600
no shit man....fuck paying that amount for that shit. Stupid name anyways.....i
might pay $200 for howto.com or chaos.com but not $1k for something that shitty.
Paul Anderson wrote:
> [EMAIL PROTECTED] (Matthew Ross Peterson) writes:
>
> >The domain linuxrules.com
> >
> Who'd be looney enough to pay $1,000 for a domain name?! Yife, if I was that
> dedicated to having something like linuxrules.com, I'd register
> linuxrules.net. Add a hyphen, and you've got free .org and .net domains that
> you can register for $70 per.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Jason Davis * Real knowledge is to know the
[EMAIL PROTECTED] * extent of one's ignorance.
ICQ# 28684069 * -Confucious
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
------------------------------
From: Clemens Nijhof <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.help,comp.os.linux.setup,alt.os.linux.redhat,alt.os.linux,linux.redhat.install,linux.redhat.misc
Subject: Re: Help with LILO?
Date: Mon, 22 Mar 1999 16:07:36 -0500
Reply-To: [EMAIL PROTECTED]
Andrew Maus wrote:
> My primary IDE drive (6GB) has
> Windows 95 installed,
>From the top of my hat, I think your first partition (win98 drive C)
cannot be bigger then 528 Mbytes for Lilo to install. What you
should do is to see if you can backup your drive, and repartition
your C drive and then re-install your winders on the D partition.
Put MSDOS or something small on your C partition. mine for sample is
only 11 megs.
hope this helps
novice
------------------------------
From: Thomas Zajic <[EMAIL PROTECTED]>
Subject: Re: No setup signature found (I can't believe no one knows!)
Date: Mon, 22 Mar 1999 21:26:12 GMT
[EMAIL PROTECTED] wrote:
> Hello Julius! My new kernel is only 5120, as opposed to the old, which is
> 454325. I recompiled to remove daemons that I had loaded in with a complete
> install of RedHat 5.2.
Is this 5120 _bytes_???!!! This just can�t be right, there�s no way to
fit a Linux kernel into 5KB, no matter how much you take out. You sure
made a mistake somewhere in the config/compilation process.
> I ran make menuconfig, make dep, yadda yadda....You
> know the story.
cd /usr/src/linux
make mrproper
make menuconfig
make dep
make clean
make zImage
make modules
make modules_install
make zlilo??? (can anyone help with the Lilo stuff,
/sbin/lilo??? I�m using Loadlin myself :-)
That should get you some good, clean kernel, to the best of my
knowledge ... heh, a full Linux kernel in 5KB, cool - if you really
can do this, my guess would be that Linus will personally come by
and set up Lilo for you. ;-)
Thomas
--
=---------------------------------------------------------------------=
- Thomas Zajic aka ZlatkO ThE GoDFatheR, Vienna/Austria -
- Spam-proof e-mail: thomas(DOT)zajic(AT)teleweb(DOT)at -
=---------------------------------------------------------------------=
------------------------------
Date: Mon, 22 Mar 1999 13:30:39 -0500
From: "M. Brian Akins" <[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
try www.starnet.com. They have a pretty good server.
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?
>
> Thanks!
> --
> Jon D. Slater QualComm Inc.
> [EMAIL PROTECTED] 6150 Lookout Road
> Phone: (303) 247-5037 Boulder, Colorado
> Fax: (303) 247-5167 80301
------------------------------
From: "Kerkman, Tig" <[EMAIL PROTECTED]>
Subject: [Fwd: Corrollary SMP Systems - Linux ???]
Date: Mon, 22 Mar 1999 15:48:20 -0600
This is a multi-part message in MIME format.
==============5A0E498F2EEDBDC132793048
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
==============5A0E498F2EEDBDC132793048
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Path:
gotham-globe.newsops.execpc.com!newsops.execpc.com!newstank.sol.net!207.106.0.20.MISMATCH!news-xfer.newsread.com!netaxs.com!newsread.com!newsfeed.berkeley.edu!remarQ73!supernews.com!remarQ.com!news.alt.net!serv.net!usenet
From: "Kerkman, Tig" <[EMAIL PROTECTED]>
Newsgroups: comp.os.linux.hardware
Subject: Corrollary SMP Systems - Linux ???
Date: 19 Mar 1999 14:03:28 GMT
Organization: ExecPC Internet - Milwaukee, WI
Message-ID: <7ctlfg$pt6$[EMAIL PROTECTED]>
NNTP-Posting-Host: 199.201.191.2
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: gotham-globe.newsops.execpc.com 921764369 15279 (None) 207.250.155.159
X-Complaints-To: [EMAIL PROTECTED]
X-Mailer: Mozilla 4.05 [en] (X11; I; SCO_SV 3.2 i386)
X-Cache: nntpcache 2.3.2 (see http://www.nntpcache.org/)
Cache-Post-Path: [EMAIL PROTECTED]
X-Cache: nntpcache 2.3.2 (see http://www.nntpcache.org/)
X-Cache: nntpcache 2.3.2 (see http://www.nntpcache.org/)
Cache-Post-Path: [EMAIL PROTECTED]
X-Cache: nntpcache 2.3.2 (see http://www.nntpcache.org/)
I have 3 Corrollary smp Systems that I am able to load Red Hat Linux 5.2
on. The problem comes in when I need to access the Global Ram. The
Global memory is physically separate from the processor boards. My
memory board contain 64 megabytes of memory. The Corrolary smp systems
have a ISA-based AT controller that has 16 megabytes. Then the systems
ISA-based system is a bridge to the C-bus architecture. This allows AT
bus DMA boards direct access to the 64 megabyte C-bus memory.
My problems is that Linux only reconginzes the 16 megs and not the 64
megs. I have tried the mem=64m. But the server dumps on bootup.
Any suggestions or solutions would greatly be appreciated.
Tig Kerkman
City of Kenohsa
[EMAIL PROTECTED]
:)
==============5A0E498F2EEDBDC132793048==
------------------------------
From: [EMAIL PROTECTED]
Subject: RH5.2, SoundBlaster and mpg123
Date: Mon, 22 Mar 1999 20:54:34 GMT
Hello everyone,
At work I have a Pentium 160 (not MMX) and I'm using RH5.2.
I installed an old 8-bit SoundBlaster card (ISA) in this machine
and got it working using 'sndconfig'. It works fine with
'soxplay' (.au files) and 'xplaycd'.
But when I try to play
.mp3 files using mpg123 (which I downloaded as an RPM from
linuxberg) I do not get any error messages, but the sound
is completely scrambled (it is not static, but literaly
sounds like scrambled communication - lot of intermittent
hi-pitch sounds and no music content). The same files work
fine at home (Pentium200MMX+RH5.2+Ensoniq AudioPCI).
Does mpg123 support 8-bit play-back? or is it something
to do with the sound driver (currently installed as module)?
Many thanks.
-Thas
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: [EMAIL PROTECTED] (XU)
Crossposted-To: comp.databases.oracle.misc,comp.os.linux.questions
Subject: Re: Is there a reference for Bash shell scripts on the web? (Oracle startup
script)
Date: 22 Mar 1999 21:45:02 GMT
You should change the wrong line to:
if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]; then
Notice the space after "[" and before "!" and also the space before "]".
Robert XU
Anubis ([EMAIL PROTECTED]) wrote:
: Hello,
: I'm looking for a reference for Bash shell scripts on the web.
: Specifically, I'm trying to debug this script:
: #!/bin/sh
: #
: # Set the ORA_HOME to be equivalent to the ORACLE_HOME
: # from which you wish to execute dbstart and
: # dbshut
: # set ORA_OWNER to the user id of the owner of
: # the Oracle database in ORA_HOME
: ORA_HOME=/usr/app/oracle/product/8.0.5
: ORA_OWNER=oracle
: if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]
: then
: echo "Oracle startup: cannot start"
: exit
: fi
: case "$1" in
: 'start')
: # Start the Oracle databases:
: su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
: ;;
: The line "if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]" is being
: choked on with the error: "[!: Unknown command"
: This script was part of the Oracle install... grrr
: Any help/pointers/url's would be appreciated
------------------------------
From: James Youngman <[EMAIL PROTECTED]>
Crossposted-To: gnu.announce,alt.sources.d
Subject: Announcing the release of GNU CSSC-0.10beta.pl0, an SCCS clone
Date: Mon, 22 Mar 1999 10:50:13 -0500
Version 0.10beta.pl0 of CSSC is now available by FTP from
alpha.gnu.org in the directory /pub/gnu/CSSC. There is a (faster)
mirror at ftp://sunsite.doc.ic.ac.uk/Mirrors/alpha.gnu.org/pub/gnu/CSSC/.
CSSC is a work-alike for the traditional source control program "SCCS".
I'm happy to announce the arrival of version 0.10 of CSSC, which has
been promoted from alpha to beta status. This promotion is long
overdue, and I am doing it now because I'd like to make a public
release fairly soon and a jump straight from alpha to released status
would look a little bizarre.
As for actual changes since the last version (CSSC-0.09alpha.pl4),
this version now compiles under C++ compilers other than GCC. At the
moment this has only been tested with the EPC compiler, but not many
changes were required for this, so I think it's quite likely that CSSC
will now compile with a selection of other C++ compilers.
I am very interested in any results with C++ compilers other than
GCC. Please advise me of your findings!
Many thanks to all those who have helped so far.
I'd also still like to know about features that are needed but not
provided. If you have an outstanding bug report that hasn't been
fixed, that probably means that the problem has slipped my mind.
Please remind me.
------------------------------
From: Thomas Zajic <[EMAIL PROTECTED]>
Crossposted-To: comp.databases.oracle.misc,comp.os.linux.questions
Subject: Re: Is there a reference for Bash shell scripts on the web? (Oracle startup
script)
Date: Mon, 22 Mar 1999 21:01:55 GMT
Anubis wrote:
> Hello,
> I'm looking for a reference for Bash shell scripts on the web.
> Specifically, I'm trying to debug this script:
> [ ... ]
> if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]
> [ ... ]
> The line "if [! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME]" is being
> choked on with the error: "[!: Unknown command"
Just as one would expect. ;-) There should be a space between the
�[� and the �!�. �[� is actually a command, it�s a shorthand for
�test�, both of which come as ordinary binaries in /usr/bin and
as bash builtins:
TK212017089010:~$ ls -l `which [` `which test`
lrwxrwxrwx 1 root root 4 Mar 15 13:08 /usr/bin/[ -> test*
-rwxr-xr-x 1 root bin 29312 Jun 16 1997 /usr/bin/test*
TK212017089010:~$ man bash
[ ... ]
test expr
[ expr ]
Return a status of 0 or 1 depending on the evalua�
tion of the conditional expression expr. Expres�
[ ... ]
And I could swear you�re missing a couple of �;� and �{� and �}�
at some places as well. So, to answer the original question,
the following structure should work:
if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME] ;
then {
echo "Oracle startup: cannot start";
exit; }
fi
Or, alternatively:
if test ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ;
then {
echo "Oracle startup: cannot start";
exit; }
fi
> This script was part of the Oracle install... grrr
I agree, this shouldn�t happen with a commercial grade product.
> Any help/pointers/url's would be appreciated
HTH,
Thomas
--
=---------------------------------------------------------------------=
- Thomas Zajic aka ZlatkO ThE GoDFatheR, Vienna/Austria -
- Spam-proof e-mail: thomas(DOT)zajic(AT)teleweb(DOT)at -
=---------------------------------------------------------------------=
------------------------------
From: caf <[EMAIL PROTECTED]>
Subject: crypt & passwd.c
Date: Mon, 22 Mar 1999 20:12:11 GMT
Hi,
Doing some programming (actually on HP-UX 11) but at the moment i can get
anything to compile on Linux (2.0.37) with crypt - i keep getting
/tmp/cca049041.o(.text+0x33): undefined reference to 'crypt'
not being ofay with writing/compiling c on linux and i have no idea what this
is ...
also i would like to know where to find the passwd.c source for the linux
/usr/bin/passwd program. however the one i have found is just a token updater
rather than the 'full' program.
- caf -
========================================================================
didn't know what to put so i'll just put nothing...
craig a. falls - caf0013<XX-REMOVE-XX>@hotmail.com
========================================================================
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
** 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
******************************