Linux-Misc Digest #859, Volume #18                Mon, 1 Feb 99 19:13:09 EST

Contents:
  Re: command in new xterm (Donn Miller)
  Re: Great Tech jobs in So. Cal (Bev)
  Re: setting prefrences in x-windows ("David Z. Maze")
  ---------Drivers BANSHEE------ ("LORDGUI")
  Re: setting prefrences in x-windows (Ben Russo)
  Re: Linux is not even in Windows 9X's class. (Rick Onanian)
  How to exit from minicom? ("Hugh")
  Re: Mouse vs. Ethernet: Revenge of eth0 (Peter S. Frouman)
  Re: VL-Bus SCSI? (Phil Brutsche)
  Re: Criminally Insane Programmers Are Attracted To Open Source Code (David Kastrup)
  licq (fernando)
  Re: INIT Ids respawning too fast (James Youngman)
  Re: newbie GCC problem (James Youngman)
  Re: gcc, math.h, and sqrt() function problem (James Youngman)
  Re: What does this error message mean? ("J�rgen Exner")
  Re: Linux keyboard locks up (Ben Russo)
  Re: How to exit from minicom? ([EMAIL PROTECTED])
  Re: Linux is not even in Windows 9X's class. (Darin Johnson)
  Re: Advice for Microsoft-haters (Darin Johnson)
  loading daemons (Conan Heiselt)
  Re: /etc/issue (Luke Skywalker)
  Which Netscape
  Re: Advice for Microsoft-haters (Matthias Warkus)
  ABC Simple scripting question (root)

----------------------------------------------------------------------------

From: Donn Miller <[EMAIL PROTECTED]>
Subject: Re: command in new xterm
Date: Mon, 01 Feb 1999 16:08:44 +0000

[EMAIL PROTECTED] wrote:

> Hi,
>
> Could someone please tell me how to write a bash script that opens a new xterm
> and runs a command in that new window.

#!bash
#

xterm -e command arg1 arg2

Donn


------------------------------

From: Bev <[EMAIL PROTECTED]>
Subject: Re: Great Tech jobs in So. Cal
Date: Mon, 01 Feb 1999 10:58:16 -0800
Reply-To: Bev <[EMAIL PROTECTED]>

"whistler @twcny.rr.com (Paul E Larson)" wrote:
> 
> In article <[EMAIL PROTECTED]>, Bev <[EMAIL PROTECTED]> wrote:
> >Cameron Spitzer wrote:
> >>
> >> In article
> > <[EMAIL PROTECTED]>,
> >>  <[EMAIL PROTECTED]> wrote:
> >> >We're a new recruiter in Los Angeles with lots of positions to fill in all
> >>
> >> Hey, I'll bet [EMAIL PROTECTED] is looking for that.
> >
> >Anybody who works for PacBell becomes The Enemy...
> >
> Ummmmm.... pacbell.net is a ISP so while it is possible that they work for
> PacBell Co. it is more likely they subscribe to the Internet access service
> provided by PacBell.

Them too!

-- 
Cheers,
Bev
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The Marketing Professional's Motto:  "We don't screw the customers.  All
we're doing is holding them down while the salespeople screw them."
                                                          -- Scott Adams


------------------------------

From: "David Z. Maze" <[EMAIL PROTECTED]>
Subject: Re: setting prefrences in x-windows
Date: 01 Feb 1999 17:09:33 -0500

vod  <[EMAIL PROTECTED]> writes:
vod> While running x-windows if i make any change to the prefrences
vod> like changing the background or changing the mouse cursor the
vod> changes are not permanent i.e. is if i exit and restart x-windows
vod> prefrences are back to normal.  In which file are the prefrences
vod> saved.

The X server makes no attempt to save this state.  Other packages,
such as GNOME, may attempt to if you use their configuration
utilities.  You can add the commands to set up your preferred
environment to your X startup files, generally .xsession for an xdm
login or .xinitrc for startx, though YMMV.

-- 
 _____________________________
/                             \       "Dad was reading a book called
|          David Maze         |     _Schroedinger's Kittens_.  Asexual
|         [EMAIL PROTECTED]       |  reproduction?  Only one cat is in the box."
| http://donut.mit.edu/dmaze/ |               -- Abra Mitchell
\_____________________________/

------------------------------

From: "LORDGUI" <[EMAIL PROTECTED]>
Subject: ---------Drivers BANSHEE------
Date: Mon, 1 Feb 1999 22:10:06 +0100

Can you help me ??? PLEASE...


Where is the BANSHEE DRIVERS for Linux (RedHat 5.2) ?


Thanks.



















Bye...




















I'm sorry, but you're STUPID





------------------------------

From: Ben Russo <[EMAIL PROTECTED]>
Subject: Re: setting prefrences in x-windows
Date: Mon, 01 Feb 1999 14:14:03 -0500

[EMAIL PROTECTED] wrote:

> hello,
> While running x-windows if i make any change to the prefrences
> like changing the background or changing the mouse cursor the changes
> are not permanent i.e. is if i exit and restart x-windows prefrences
> are back to normal.
> In which file are the prefrences saved.
> Is it a bug or is it supposed to be this way ?
>
> i have red hat 5, kernel 2.x Linux.
>
> thanx
> V0D
>

The method for setting your preferences permanently depends on the Window
Manager, not on X.  This is not a bug, this is supposed to be this way.
Although some WM's (window managers) allow you to "auto-save" settings
like background, mouse cursor's, font settings and such if you exit using
a certain method, if you just exit and restart by killing X  it wouldn't
be saved.

You may be helped by finding the HomePage for your particular window
manager, and seeing their FAQ or help/documentation pages.  If you are
using the default "FVWM95" that comes with RedHat, you should read their
documentation first.  It is basically a souped up version of FVWM2 with a
docker and menu app.

-Ben.


------------------------------

From: Rick Onanian <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Linux is not even in Windows 9X's class.
Date: Mon, 01 Feb 1999 17:00:37 -0500

Stephen So wrote:

> > >I *like* knowing that in addition to Linux there's FreeBSD and other BSD
> > >variants, OS/2, PIOS, BeOS, MacOS, AmigaOS, Solaris, Irix, HP-UX, OSF/1
>
> OS/2, BeOS, Mac OS, and Amiga OS are not BSD variants.  I think Solaris, Irix,
> and HP-UX are more based on System V than BSD but I'm not sure.

I don't think he meant it that way. If he did, he would have wrote:
>I *like* knowing that in addition to Linux there's FreeBSD and other BSD
variants, such as OS/2, PIOS.......etc....

The differance, you will notice, is the "such as".  He was just listing everything
he could think of, possibly not in the most logical or clear order. :)

  rick



------------------------------

From: "Hugh" <[EMAIL PROTECTED]>
Subject: How to exit from minicom?
Date: Mon, 1 Feb 1999 13:08:33 -0600

This is a really difficult question I'm sure. How do you exit from minicom?

Hugh



------------------------------

From: [EMAIL PROTECTED] (Peter S. Frouman)
Subject: Re: Mouse vs. Ethernet: Revenge of eth0
Date: 1 Feb 1999 19:30:24 GMT
Reply-To: [EMAIL PROTECTED]

On 31 Jan 1999 21:07:32 GMT, nonet@chain <nonet@chain> wrote:
>So I got my ethernet card working.  It was tough.  As it turns
>out, the card takes IRQ 3.  Thanks, card.
>
>That was the IRQ the serial was using (for mouse).   How do
>change the IRQ for the mouse?  I went to Award BIOS' home

The optimal solution in this case is to change the IRQ used by the
ethernet card. Maybe you need one of the setup/diagnostic programs that
came with the card or are possibly at http://cesdis1.gsfc.nasa.gov/linux/
Anyways, the IRQ of the serial port used by the mouse can also be changed.
For on-board serial ports, you can usually change the IRQ in the BIOS or
perhaps you will need to adjust the jumpers. However, you still need to
use the setserial program to tell the kernel to use a different IRQ than
the default. The setserial program is usually run from an init script (for
example, /etc/rc.d/rc.local or /etc/rc.d/rc.serial). Since it seems your
mouse is on /dev/ttyS1 (COM2) the setserial command would be something
like:
'/bin/setserial /dev/ttyS1 irq 9'
Of course you might need to replace 9 with an IRQ that is available.
[...]
>Hmmm...  Is there a HOWTO on this? I can't find anything on 
>point.
see the following:
http://metalab.unc.edu/LDP/HOWTO/Ethernet-HOWTO.html
http://metalab.unc.edu/LDP/HOWTO/Serial-HOWTO.html
http://metalab.unc.edu/LDP/HOWTO/mini/Coffee.html

-- 
-Peter Frouman | [EMAIL PROTECTED]
Zippy says:
Am I elected yet?

------------------------------

From: Phil Brutsche <[EMAIL PROTECTED]>
Subject: Re: VL-Bus SCSI?
Date: Mon, 1 Feb 1999 14:08:35 -0600

On Mon, 1 Feb 1999, Eric Webster wrote:

> I am building a new system from an old - I have a 486/66 VL-bus with an
> adaptec VL-based scsi card. Do any of the Linux adaptec drivers support the
> VL card? The card is an ava-2825.
the aic7xxx driver should - as I understand it, VL-Bus was just an
extension of ISA.  And I _know_ I remember reading that ISA cards are
supported.

I can't check at the moment, though - I don't have easy access to anything
Linux (except my email).

======================================================================
Phil Brutsche           [EMAIL PROTECTED] | [EMAIL PROTECTED]

Microsoft:  "Where do you want to to today?"
Linux:  "Where do you want to go tomorrow?"


------------------------------

From: David Kastrup <[EMAIL PROTECTED]>
Crossposted-To: 
alt.destroy.microsoft,comp.os.linux.advocacy,comp.os.os2.advocacy,gnu.misc.discuss,uk.comp.os.linux
Subject: Re: Criminally Insane Programmers Are Attracted To Open Source Code
Date: 01 Feb 1999 23:52:36 +0100

Jason Clifford <[EMAIL PROTECTED]> writes:

> On 1 Feb 1999, Marc Brett wrote:
> 
> > > `forking' I thought MS did something altogether different to their code -
> > > it does begin with a f though and is the same length and ends ing too!
> > 
> > `failing' ?
> 
> No, the word I was think of ryhmes with forking if anyone needs a clue.

What does it "ryhme" with if nobody needs a clue?  A lot of people in
these groups tend to get along without one.


-- 
David Kastrup                                     Phone: +49-234-700-5570
Email: [EMAIL PROTECTED]       Fax: +49-234-709-4209
Institut f�r Neuroinformatik, Universit�tsstr. 150, 44780 Bochum, Germany

------------------------------

From: fernando <[EMAIL PROTECTED]>
Subject: licq
Date: Mon, 01 Feb 1999 14:32:50 +0500

[root@localhost Linux]# ls -l libstd* 
-rwxr-xr-x   1 root     root       122757 Feb  1 12:13
libstdc++-2.8.0-14.i386.rpm
-rwxr-xr-x   1 root     root       119441 Feb  1 12:19
libstdc++-2.8.0-8.i386.rpm
-rwxr-xr-x   1 root     root       260260 Feb  1 12:21
libstdc++-2.8.1-1.i386.rpm
-rwxr-xr-x   1 root     root       910236 Feb  1 12:17
libstdc++-2.9.0-7.i386.rpm
[root@localhost Linux]# rpm -ivh libstdc++-2.8.1-1.i386.rpm 
libstdc++                  
##################################################
[root@localhost Linux]# rpm -ivh licq-0.51-1.i386.rpm 
licq                       
##########################################li###cq#####
[root@localhost Linux]# licq
licq: error in loading shared libraries
: undefined symbol: __ti10QTabDialog
[root@localhost Linux]# 


Somebody using licq knows how to solve it ?


-- 
============================================
This are my personal opinions
Real email: sanabriaf at yahoo dot com

------------------------------

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: INIT Ids respawning too fast
Date: 31 Jan 1999 22:40:31 +0000

[EMAIL PROTECTED] writes:

> Hello everybody, I'm running Redhat 5.1 on a PII 200 with 32MB
> RAM. On Friday I noticed that the Apache Web server had stopped. I'm
> not sure if this was before or after I sent it a -HUP signal to
> reload its config files. After I sent the -HUP, the system replied
> that there was no such PID. Then I tried to shutdown and reboot the

Well, it had exited.

> system, it replied that that there was no such command as
> shutdown. I was finally able to get it to shutdown and restart by

Your path didn't include /sbin.  You could have used the full pathname
/sbin/shutdown explicitly.

> giving full path to the shutdown command. But when it restarted, it
> said it couldn't execute "/etc/rc.d/rc.sysinit", and when it entered

Did that file exist?  

If so, did /bin/sh?  What about the dynamic libraries in /lib?

> runlevel 3, it said "/etc/rc.d/rc: /var/run/runlevel.dir: Read-only
> file system". After displaying the line "Appletalk 0.17 for Linux

Yes; remounting the root filesystem readonly is the job of rc.sysinit.

> NET3.035", it seemed to hand. I pressed Enter, and then it
> continued. Finally, said INIT: Id "1" respawning too fast: disabled
> for 5 minutes, and repeated this message for Id 2 through 6. After
> about five minutes, the same message reappears. The login prompt
> never appears. I have been unable to boot using a floppy. Any
> suggestions?

"linux single" at the boot: prompt should get you an emergency shell
to fix things from.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

------------------------------

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: newbie GCC problem
Date: 31 Jan 1999 22:36:47 +0000

Gary  Helbig <[EMAIL PROTECTED]> writes:

> Hello,
> 
> I'm having a little problem with gcc (RedHat 5.2 install)
> 
> If I try to compile a program that ends in '.c', all is OK.
> 
> If I try to compile a program that ends in '.C', I get an error:
> gcc: installation problem, cannot exec `cc1plus': No such file or directory
> 
> I found this while trying to "configure" a Makefile for a
> program I downloaded.

The .C extension identifies a C++ program, while the .c extension
identifies a C program.

Install the C++ compiler and C++ development libraries from the CD.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

------------------------------

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: gcc, math.h, and sqrt() function problem
Date: 31 Jan 1999 22:35:19 +0000

Shaygetz <"s m c q u a l e"@i x.n e t c o m.c o m> writes:

> I thought of posting this message to a C group, but
> my problem may actually have to do with Linux, or, more
> properly, with the GNU gcc.

[...]


> "sqrt4.c:9: undefined reference to 'sqrt'." I have an

Read the comp.lang.c FAQ.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

------------------------------

From: "J�rgen Exner" <[EMAIL PROTECTED]>
Subject: Re: What does this error message mean?
Date: Mon, 1 Feb 1999 12:23:44 -0800

>jdn wrote:
>>
>> When booting recently, I got the following error message:
>>
>> "/dev/blah has reached maximal mount count.  check forced" (obviously, it
>> wasn't /dev/blah, but you get the idea).
>>
>> Now, I know what caused the error.  I mistyped the partition number of a
>> mount I had added, adding the extended partition, instead of the logical
one
>> inside of it.  Fixed it, no problem.


Has nothing to do with mistyping the partition number.

>> But, what does it mean to reach a maximal mount count?  I simply would
like
>> to know for my own edification.


Please see the Linux FAQ question 9.13: "EXT2-fs warning: maximal count
reached. "

jue
--
J�rgen Exner; microsoft.com, UID: jurgenex
Sorry for this anti-spam inconvenience





------------------------------

From: Ben Russo <[EMAIL PROTECTED]>
Subject: Re: Linux keyboard locks up
Date: Mon, 01 Feb 1999 14:06:58 -0500

Eric Peterson wrote:

> Hi,
>         I've been running Linux for about a year, now, as an internet server for
> my home network.  In the last month or so I have begun to get a weird
> problem.  I turn on my linux monitor (the machine runs all the time) and
> the keyboard is locked up.  The screen has a couple of garbage characters
> at the login prompt, and the keyboard is completely frozen.  The only way I
> have been able to find to correct the problem is to telnet in from another
> machine and reboot.
>         I'm sure there is a more elegant way to fix the problem, but I am
> embarrassed to say I don't know it.
>         The only changes to my system lately have been that I finally got my SB16
> working (required me to change addresses for my network card and SCSI
> card).  The only other thing that I have noticed lately is that Windows has
> screwed up the IRQ & address settings for the network card on one of my
> other machines, so it is unable to access the network, and the network is
> unable to access it.  I'm going to have to disable the network card's PnP
> functions and hard set the IRQ etc.
>         I hope someone out there can help.
> --
> Eric F. Peterson
> Politically Incorrect and Proud!

You don't need to reboot to fix these problems.

Read the /usr/doc/HOWTO/Keyboard-and-Console-HOWTO
It will tell you how to fix these problems.  (*if you log in from another
machine you can run "kbd_mode -a",  the author also shows how you can
do it from the local keyboard, but it is tricky.)

Also, for people having problems with their video card going crazy
(My monitor "freezes" sometimes if X or a svgalib program crashes)

(Netscape crashes X about once a week!, and some DOOM wad's cause
svgalib program to crash, leaving the video card in VGA mode, but the
kernel tries to communicate with the video card in CGA mode.)

you can look at the man page for the commands "textmode" and "savetextmode"

These are part of the svgalib package.

basically if you run "/usr/bin/savetextmode" in the last part of "rc.local"
then it will create images of the video card memory in files in /tmp.

Later if your video cards settings get hosed you can log in from another machine
to run "textmode", and it will restore the console.

-Ben.


------------------------------

From: [EMAIL PROTECTED]
Subject: Re: How to exit from minicom?
Date: 1 Feb 1999 20:26:47 GMT

Hugh <[EMAIL PROTECTED]> wrote:
> This is a really difficult question I'm sure. How do you exit from minicom?

> Hugh

ctrl-a, x

That is use the control and a keys at the same time and then hit the
x key.

HTH

Simeon

------------------------------

From: Darin Johnson <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Linux is not even in Windows 9X's class.
Date: 01 Feb 1999 14:52:36 -0800

"Jeff Smith" <[EMAIL PROTECTED]> writes:

> Look at the embedded
> market. They pick the OS that best fits their machine.

Actually, they don't really.  The OS used in an embedded system is not
chosen for purely engineering reasons.  Other major factors are
involved, such as what OS do the engineers currently know, what OS
have we used in other products, etc.  You even have people trying to
push NT in real-time apps, which is so unsuited that the desire for it
can only be due to marketting.

Basically, as insistant as I am that I use UNIX tools and such, there
are others that are just as insistent that they use Windows tools.
And there's the infuriating group in the middle who don't care (like
my boss who suggested I run NT, and then use a telnet window to UNIX
to get my work done like he does).  This is independent upon whether
it's a real-time system, and embedded system, or whatever.

-- 
Darin Johnson
    Where am I?  In the village...  What do you want?  Information...

------------------------------

From: Darin Johnson <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Advice for Microsoft-haters
Date: 01 Feb 1999 15:05:51 -0800

Mark Stolz <[EMAIL PROTECTED]> writes:

> Well, maybe that's true outside California:

Lived here all my life, and hate it.

> Great wine (we send seedlings *back* to France when they had a blight),
> though Chile, Australia and South Africa are catching up quickly...

I don't drink wine.  Way too pretentious.  California has way too many 
pretentious people.  We should ship them to France instead.

> Food? California cuisine r0cks! Where else can you eat
> japanese-mexican-eskimo influenced food while listening to Ubangi
> dinner music.

Blech.  To me, California Cuisine means paying $20 for a miniscule
amount of nouvelle cuisine.  I've never eaten in the sort of place you 
describe, and I can't see a reason to attempt it.  Sounds like some LA 
sort of thing, but they'll do anything as long as someone hints that
it might be trendy.

> Literature? Jack London, John Steinbeck,... and don't forget all those
> great User's Guides.

Both of whom would turn over in their graves if they could see the
kitsch that California has become.

> Plus we have Silicon Valley ...

Yeah, terrible isn't it?  First you get a great salary, then the
housing prices are jacked so high that your nice salary gets eaten up,
and you end up with less money at the end of the month then when you
were elsewhere.  I'd much rather be somewhere where I can buy a house
and get equity than throw my money away on rent so that I never see it
again.  And I don't want to commute an hour to do that.  It's also too
crowded here (I thought it was too crowded and unable to grow once,
then I left for five years and came back to discover they could cram
more people in, and they're even more pretentious then they were
before).  I'm waiting for the next earthquake to see if prices
plummet; if they don't, maybe I'll switch jobs.  Besides, this place
is turning into a low-tech Windows-loving place; blech.

-- 
Darin Johnson
    "Are you a doctor?"   "No, but I watched."

------------------------------

From: Conan Heiselt <[EMAIL PROTECTED]>
Subject: loading daemons
Date: Mon, 1 Feb 1999 15:35:25 -0700

Can anyone tell me how to individually load each daemon once I've logged
on (without loading any at startup)?

Also, where do I control which daemons get started at loading time?

thanks.

conan.
[EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"A thousand gold pieces don't matter--
what counts is the strength of feeling"
               -Bao Zhao- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


------------------------------

From: Luke Skywalker <[EMAIL PROTECTED]>
Subject: Re: /etc/issue
Date: Mon, 01 Feb 1999 11:37:53 -0500

yes i have, what do you want to know

> [EMAIL PROTECTED] writes:
>
> > Any RedHat 5.2 users out there who have tried to change their
> > /etc/issue file?
>
> FAQ.  Read rc.sysinit.
>
> --
> ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet


------------------------------

Date: Mon, 1 Feb 1999 14:22:09 -0500
From:  <[EMAIL PROTECTED]>
Subject: Which Netscape

Which version of Netscape works best with Linux?
Also which ftp site would have this rpm for Red Hat 5.1?

--Greg



------------------------------

From: [EMAIL PROTECTED] (Matthias Warkus)
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Advice for Microsoft-haters
Date: Thu, 28 Jan 1999 17:55:15 +0000
Reply-To: [EMAIL PROTECTED]

It was the 28 Jan 1999 15:55:47 GMT...
..and [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In the sacred domain of comp.os.linux.misc didst Matthias Warkus 
><[EMAIL PROTECTED]> eloquently scribe:
> : It was the 26 Jan 1999 13:32:02 GMT...
> : ..and [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> :> In the sacred domain of comp.os.linux.misc didst Matthias Warkus 
><[EMAIL PROTECTED]> eloquently scribe:
> :> : <snicker> At least, they tell you the shape of your country in Germany, and
> :> : they give you a free copy of the Constitution. And you don't need to pledge
> :> : allegiance to a stupid *flag* - we ditched that kind of silliness after 1945.
> :> 
> :> And we never had that kind of silliness in the first place...
> 
> : You never had *flags*?
> 
> Nope. We just never had to make silly pledges of allegiance.
> (The only time you EVER have to do that is if you join the armed services)

I suppose this wasn't any different even in pre-trauma Germany... At first I
thought you were USAmerican, that's why I was so bewildered. You pledge
allegiance to the flag at *school* in the USA AFAIK.

And of course, the civil servants don't swear an oath on the Constitution,
but on the flag, too (an American told me that, don't flame me for it if
it's wrong).

mawa
-- 
Matthias Warkus    |    [EMAIL PROTECTED]    |    Dyson Spheres for sale!
My Geek Code is no longer in my .signature. It's available on e-mail request.
It's sad to live in a world where knowing how to program your VCR actually
lowers your social status...

------------------------------

From: root <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: ABC Simple scripting question
Date: Mon, 01 Feb 1999 18:47:33 -0500

Hi All,
    This is the third time I try to post this message. I hope I can
finish it b4 netscape crashes. It looks like it will turn linux into
another win95.

I created a file that creates a file and generates html code with my
current dynamic ip address in it.

It looks as follows
#! /bin/sh
# The previous line is meaningless 2 me..anyways..
echo "<HTML>"
echo "<TITLE>Status page</TITLE>
...
..
you get the idea, now part of the file is generated according to whether
I'm online or not. because this will be run by ip-up and ip-down, then
ftp'ed to my page at geocities so anybody can access my pc (just 4 fun).

if test $4 -eq
   then echo "Current status: online"
            echo "Current  address:
            echo  "<A Href="
            echo  \"
            echo  http://"
            echo $4
            echo \"
            echo ">"
            echo $4
            echo "</A>"
# The previous part generates
<A Href="http://123.123.123.123>123.123.123.123</A>

else
           echo "Current status: offline"
           echo "Last seen on:"
           echo `date`
fi

===============
This is a simplified version of my script. I tried -eq, i also tried
-neq, I still get the online version of it with no ip address, not even
0.0.0.0 I tried it when I'm online, offline, doesn't work. I know that
the problem is in the
test $4 -eq
part

I even tried
if test $4 -le 0
    echo...

i get a parsing error

Your help is deeply apprciated.
Wael

By the way is there a safeway to delete netscape, so i can install an
older version?


------------------------------


** 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
******************************

Reply via email to