Well, RCS looks pretty cool too! And no, I didn't know about it -- hmmm...
great minds think alike? <g>
fupdate was both something I wanted for my own use, and a mental exercise.
The original functioning version was menuless (it operated on ALL files in
the _edit_ dir) and had only rudimentary failsafes. After that the mental
"fun" began -- menus, every safety check I could think of, etc. Aside from
a few bouts with regular expressions, the most challenging part was getting
the menus to work the way I wanted. The largest benefit to me is yet to
come... I now have a bunch of working examples of various code that I'm sure
I'll refer back to in the future when I can't get things to work.
Thanks for your feedback. I'll have a look at RCS now!
bd
=====================
Brad Doster
Insight Network Solutions
www.InsightNetSolutions.net
925-335-9510
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Matthew Melvin
Sent: Wednesday, January 03, 2001 9:46 PM
To: Brad Doster
Cc: [EMAIL PROTECTED]
Subject: Re: File Update Script
On Wed, 3 Jan 2001 [EMAIL PROTECTED] wrote:
> For those who are learning to script and use ir'regular expressions'
(should
> those be single or double quotes? <g>), well, I learn by example and rtfm
> when I have to -- my script is heavily documented -- if you also learn by
> example, this might be a good learning tool. If you're among the more
> I welcome the feedback!
Your script itself looks pretty cool... but it is kind of re-inventing the
wheel a little bit. Conceptually it does almost exactly the same thing as
RCS control does.
Instead of...
mkdir /etc/rc.d/_edit_
cp /etc/rc.d/rc.local /etc/rc.d/_edit_
Edit the copy of rc.local in the Edit Directory.
Execute this script (fupdate) and select rc.local as a file to update.
... you might do...
cd /etc/rc.d
mkdir RCS
co -u rc.local
... and enter a description for the file where prompted.
co -l rc.local
edit rc.local
ci -u rc.local
... and enter a description for the changes where prompted.
I don't know if you knew about that or not. Perhaps you wrote your script
as a mental exercise in which case more power too you.. carry on. :)
Otherwrise you might want to chech out the rcsintro(1) man page - it's very
cool and having multiple revisious of my config files has saved me often.
Cheers,
M.
--
WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road. Network Operations - Systems Engineer
PO Box 4169, East Brisbane. phone: +61 7 3249 2583
Queensland, Australia. pgp key id: 0x900E515F
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list