Thanks. I haven't noticed any problems with it, but will keep it in mind
and probably change it the next time I have the system down.
bd
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Statux
Sent: Monday, April 09, 2001 10:41 PM
To: [EMAIL PROTECTED]
S
Old machine... Packard Bell, Pentium 100, PB600 M/B. Phoenix BIOS 4.04,
Agoura 1.20 (latest available). I've tried 2 PCI NICs (one at a time) with
basically the same results -- Kingston KNE111TX/100B using the tulip driver
and HPTX 10/100 (D5013) using eepro100, using the latest drivers from
scy
I have a number of messages stuck in my mailq because the receiving MX
server lost it's DSL connection very rudely and unexpectedly. It could be
up to 30 days before that server is back online and able to receive mail.
I have an alternate account that I can redirect these messages to, but have
n
Try
'/sbin/chkconfig'. If that doesn't work, try 'locate chkconfig | less' to
find if it's there, and if so, where it is.
bd
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of AbeSent:
Monday, February 12, 2001 2:28 PMTo:
[EMAIL PROTECTED]Subject:
Is there a known host address that you can only ping thru the ppp interface?
If so, you might script a ping test, then let X act based on the result
code. Something like this might work:
#Wait for 4 'echo reply's or 10 seconds, whichever is greater
#NOTE: -w does not work under k
OK, thanks for the feedback!
bd
___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
Pretty much as I figured. Thanks for the feedback!
bd
___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
When is it necessary/desireable (probably 2 different questions) to unset
variables created within a script? I've written a bash function that gleans
most, if not all, variables created within a script, then unsets them. But,
when it runs, it takes a second or two, which isn't bad, but feels lik
>> Look at manipulating the IFS variable; you can do wondrous things with
that.
Yep, I've thought about it, but that's all so far.
>> Next, we get into opening and using file descriptors...
All in good time. :)
bd
___
Redhat-list mailing list
[EMA
>> See my other replies for more thoughts on this, but it actually has to be
>> "s/$//g", and must use "s rather than 's.
Whoops! My bad. :) Both of these work...
's/\\$//g' # single quotes
"s/$//g"# double quotes
Thanks to Matthew for catching my goof
>> That's making the big assumption that wrong sort of quotes is your
problem.
>> If not then umm.. err.. *shurg* ... Did i meantion in worked for me? ;)
Yep, you nailed it. Thanks for taking time to post the echo examples!
bd
___
Redhat-list maili
>> Now what you should do is store the \n's in var3 like:
>> var3=`echo "$var1\n$var2"`
>> after which:
>> echo -e $var3
>> would give the desired output
Yep, that works too. But :), var3=`echo -e "$var1\n$var2"` seems to be a
bit more flexible in that 'echo $var3' produces...
a b
...a
>> varlist=`echo "$varlist" | sed 's/\\$//'`
See my other replies for more thoughts on this, but it actually has to be
"s/$//g", and must use "s rather than 's.
Thanks for your input!
bd
___
Redhat-list mailing list
[EMAIL PROTECTED]
https://li
=====
Brad Doster
Insight Network Solutions
www.InsightNetSolutions.net
925.335.9510
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Luke C Gavel
Sent: Friday, January 26, 2001 2:18 AM
To: [EMAIL PROTECTED]
Subject: RE: Bash Script Questions
he same, but definitely acts
differently. Maybe we need extra protection for both the '\' and the '$'?
And I thought this was going to be an easy question! :)
bd
===
Brad Doster
Insight Network Solutions
www.InsightNetSolutions.net
925.335.9510
>> varlist=`echo "$varlist" | sed -e "s/$//g"
Yep, that did it! But, what did it do? Or, where can I find info that will
help me make sense of it? FWIW, it looks to me like it's searching for
'\\$' (???). Oooh it is! But the '\\$' gets reduced to '\$' which then
works as desired.
Hi Matthew,
Perhaps what I'm doing in the '$' case needs a bit more explanation. The
following is a script segment that gleans variable names from the script in
which it is run:
for varname in case select until while ; do
varlist=`cat "$0" | grep "^[]*$varname " | se
1) I have a variable with a list of variable names as its content, e.g.
'varlist=$var1 $var2 $var3'. I want to manipulate $varlist such that it
='var1 var2 var3', i.e get rid of the '$'s in front of each variable name.
A 'sed' example that I've tried is:
varlist=`echo "$varlist" | sed 's
| Globbing happens to command lines after parameter substitution.
But wouldn't that mean that the following...
echo 'echo '$2' | sed '"s/^/ / ; s/\$/ / ; s/ $1 / / ; s/^ // ; s/ \$//"
...which produces...
echo * | sed s/^/ / ; s/$/ / ; s/ . / / ; s/^ // ; s/ $//
..._should_ have shown '*' in
at's going on.
Finally, if I set flist=`echo *` (forcing the expansion of '*' before
calling the function), the results are identical to the previous test
(actual expanded file list).
Bottom line... I understand what you're saying about '"$2"' vs. '$2',
> Does this make stuff clearer?
Very much so! Thanks for the great explanation!
> Also, you want to use '' instead of "" in the sed argument. Otherwise your
$
> in "s/ $//" can be misinterpreted. It is best to use '' unless you really
> need parameter substitution to occur. Safer.
I ended up w
(and multiple spaces
between words) to stick in variables, or this a "feature" of bash?
bd
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Cameron Simpson
Sent: Friday, January 05, 2001 3:22 PM
To: [EMAIL PROTECTED]
Cc: Brad Doster
Subject: Re: Whole
TECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Matthew Melvin
Sent: Thursday, January 04, 2001 3:09 PM
To: Brad Doster
Cc: [EMAIL PROTECTED]
Subject: RE: File Update Script
On Thu, 4 Jan 2001 [EMAIL PROTECTED] wrote:
> Hi Matthew,
>
> I think your first RCS command below should have been
1) It appears that 'rsync -e ssh...' does not get hidden (.*) files. I've
tried using the '--include ".*"' option to no avail. Is there a way to get
these files?
2) When using 'rsync server::module/path...', on the client side I get
"Permission denied" and the server side shows the rsync daemon
#x27;s definitely not a signal 11.
Thanks for your help,
bd
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Cameron Simpson
Sent: Wednesday, December 13, 2000 4:10 AM
To: [EMAIL PROTECTED]
Cc: Brad Doster
Subject: Re: rsync questions
On Tue, Dec 12, 2000
[Sorry if this shows up twice -- I sent it over 5 hours ago and it hasn't
hit the list yet.]
1) It appears that 'rsync -e ssh...' does not get hidden (.*) files. I've
tried using the '--include ".*"' option to no avail. Is there a way to get
these files?
2) When using 'rsync server::module/pat
To: [EMAIL PROTECTED]
Subject: Re: Auto-mail Script Woes (Solved)
Brad Doster wrote:
> I guess writing this up was therapeutic. :-)
>
> Getting mail to work from within the script was a matter using double
> quotes -- instead of...
>
> /sbin/ifconfig | mail -s $CURRTIME
I've picked up a good chunk in the last couple of days, on my
own and with your help. For that, once again, thanks!
bd
===
Brad Doster
Insight Network Solutions
www.InsightNetSolutions.net
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTE
t;. Thanks for your help!
bd
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Harry Putnam
Sent: Saturday, December 09, 2000 3:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Auto-mail Script Woes
"Brad Doster" <[EMAIL PROTECTED]> writes:
> I h
to send without echoing "Sending
mail..." yet, so if anyone has the answer to that, I'm still listening.
bd
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brad Doster
Sent: Saturday, December 09, 2000 2:16 PM
To: [EMAIL PROTECTED]
Subject:
Got it. I was confused at first about what you were saying as I didn't
realize that one could define variables in crontab. Found the man page
though, so I think I'm set. Thanks for the pointer in the right direction!
bd
===
Brad Doster
Insight Network
ng the text "Sending mail..."
and nothing else.
A "bandaid" to the elm problem is to create an inbox rule which deletes the
extra messages, but I'd much rather learn how to do this correctly.
TIA for any assistance!
bd
===
Brad Doster
Insight Network
PROTECTED]]On Behalf Of Harry Putnam
Sent: Saturday, December 09, 2000 10:58 AM
To: [EMAIL PROTECTED]
Subject: (no subject)
"Brad Doster" <[EMAIL PROTECTED]> writes:
> I call the following script from rc.local using the the syntax '.
> /path/script-name'. This ma
I call the following script from rc.local using the the syntax '.
/path/script-name'. This makes the variables $DYNIPADDR and $GATEWAY
available in shell sessions.
#! /bin/bash
DYNIPADDR=`\
/sbin/ifconfig | grep "inet addr:" | grep -v "127.0.0.1" | grep -v
"192.168.0.1" |\
sed -e 's/:/ /' | awk
34 matches
Mail list logo