On Thu, 30 Dec 1999, Jack Barnett wrote about, Re: Shell script pinging for HR6.1:
>
> Oh so I cann't write #!/bin/sh scripts on the fly. Doh, close enough to know
> what it means any way. I guess I should run it though, next time, real
> quick so I don't look like a dumbass, a?
>
> while [ 1 ]
> do
> ping -c1 isp.domain.com > /dev/null 2> /dev/null
> done
>
> happy?
>
> Most of the errors you get from this, is if, you are not connected up.
> Since we probably know that we are not connected up, we don't need the error
> messages.
>
> Anyways, like I said it was a quick script. Only had 15 minutes to get
> though /all/ of my email this morning.
Jack.
Firstly i was not flaming you in the way you seem to think.
Secondly, its not a real good idea just to answer a mail in haste, take it
from me, i've been there and done that, when one writes something in haste
then mistakes will undoubably be in abundance, that leads to more
misunderstandings and more mails making it even more misleading.
As to shell scripting most commands can be used in many ways, but, when
multiple commands are in one routine problems will arise, possably not when
the person who wrote it executes the script but i mean in gerneral.
Now i dont want to start another general disscustion on what is best and
what is not, in this case in such a simple script both [ 1 ] and : work.
Take an example from Ray, his answers are well thought out and rearly
incorrect, i hope i can say the same about myself. I make mistakes as well,
be it mostly spelling mistakes, English might be my native langague but i
have been here in Holland for 25 + years and belive me it gets very hairy
sometimes when trying to spell the correct words in the correct langauge,
let alone trying to write scripts which will work on _all_ distributions.
Have a nice day.
> Jack
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
Happy New Year