Search found 128 matches

by caveman
Fri Apr 08, 2005 6:44 pm
Forum: Applications
Topic: awkage
Replies: 14
Views: 7900

right - a quick reply afore I'm off to bed - it is now 02h47 where I live your statement print $1,$2,$3 > testB means to output to a file defined in variable testB which does not exist change to the following print $1,$2,$3 > "testB" note the quotes this means output to a file named testB or varoutf...
by caveman
Fri Apr 08, 2005 6:16 pm
Forum: Applications
Topic: awkage
Replies: 14
Views: 7900

Hmm - just some quick info an if-else in awk is like the following if ( x ==y ) { # what to do when # the if is true } else { # what to do when # the if is false } nesting if-else statements - the brackets are crucial (i put the brackets vertically aligned with the if-else { if ($3 ~ /.5/) { sub(/.5...
by caveman
Fri Apr 08, 2005 5:01 pm
Forum: Applications
Topic: awkage
Replies: 14
Views: 7900

Now - there are various ways of doing this... given that the file records are still in the correct order eg. use getline to read a record from the second file for every record read from the first file - something like the following { getline line < "second.file" print $0 "," line } or - a little com...
by caveman
Sun Feb 27, 2005 3:01 pm
Forum: Applications
Topic: script permissions
Replies: 8
Views: 6040

Yep - you right Void Sorry gang - this is what happens when you think about one thing while writing something else :oops: It should read "mode" and not "mask" - allthough they are related, they are really not the same thing. I mean - we use chmod to change permissions and not chmask - heh heh! A lac...
by caveman
Sun Feb 27, 2005 2:04 pm
Forum: Applications
Topic: script permissions
Replies: 8
Views: 6040

Just a little info. My files by default are created with a mode of 644. Now something to think about - and maybe give a a different idea in how to use scripts is the so-called "dot" command eg. a file called xxx.sh with a mode of 644 can be executed by using ". ./xxx.sh" - that is a dot followed by ...
by caveman
Sat Feb 19, 2005 7:37 pm
Forum: Fedora/Red Hat
Topic: Fedora DNS & Gateway Server
Replies: 6
Views: 5880

just a quick one.. As a fast install that does just about everything for you, try http://www.linuxkungfu.org/ipkungfu (install - make minor changes to suite your environment - fire it up and away you go) My first servers were all based on ipkungfu - until I got to understand what it is all about. In...
by caveman
Fri Feb 11, 2005 4:54 pm
Forum: Programming
Topic: potentially dumb question
Replies: 3
Views: 4176

hmm - just a quick reply 'afore I have to go. Yes - do a "man bash" - it will give you all the options A quick place to pick up some workable and nice examples are the scripts in the rc.d or init.d directory under etc. an "if" statement starts with an "if" an optional "else" and is terminated by "fi...
by caveman
Wed Feb 09, 2005 5:19 pm
Forum: Fedora/Red Hat
Topic: FC3 DNS problem
Replies: 6
Views: 2602

Nope. Tried all of that, as well as the suggestions on the fedora forums. Rebooting -> the resolv.conf is empty. Tried changing the permissions from 644 to 444 on the resolv.conf file - but some scripts somewheres changed it back - and emptied the file :? So for now - I have to remember to reset it ...
by caveman
Tue Feb 08, 2005 5:41 pm
Forum: Fedora/Red Hat
Topic: FC3 DNS problem
Replies: 6
Views: 2602

The initscripts -> initscripts-7.93.5-1 from Nov 2004 And in the ifcfg-eth0 file -> PEERDNS=no But the ifcfg-mypppentry -> PEERDNS=yes on the server running FC1 I'll set this to "no" as well and test during the morning when I have to reboot due to some electrical cables being installed. Shall keep y...
by caveman
Mon Feb 07, 2005 6:25 pm
Forum: Fedora/Red Hat
Topic: FC3 DNS problem
Replies: 6
Views: 2602

Hmm TX - that was actually the first check that I made.. Made sure everything was "static" and nothing is resolved via dhcp etc. I've never had "allow all users to activate....." set on my machines... so I've now set it - saved - unset it and saved again. Shall check this as soon as I get time to re...
by caveman
Mon Feb 07, 2005 4:42 pm
Forum: Fedora/Red Hat
Topic: FC3 DNS problem
Replies: 6
Views: 2602

FC3 DNS problem

hi. I have a strange problem that started after upgrading to the 741 kernel. I've never had problems with my network connections... My development machine runs FC3 and my internet gateway is on FC1. On my development machine after upgrading to 741 I discovered that my /etc/resolv.conf is allways emp...
by caveman
Mon Jan 31, 2005 7:24 pm
Forum: Fedora/Red Hat
Topic: Tarball
Replies: 8
Views: 4115

my non-Linux sites are mostlly AIX and Solaris.. and the System guys enjoy forcing the systems to stay "vanilla" (can understand their reasons). So - yes - they still don't strip out the leading "/", and me working on unix type systems since the middle eighties, I make bloody sure there are no leadi...
by caveman
Mon Jan 31, 2005 5:57 pm
Forum: Fedora/Red Hat
Topic: Tarball
Replies: 8
Views: 4115

and just a reminder...;) Not to start the backup from the root directory ie. with the leading "/" in front. eg. # cd whereever # tar -cvzf /backup/userbackup.tgz /home/fred /home/mary rather # cd / # tar -cvzf /backup/userbackup.tgz home/fred home/mary There are many reasons - but the main one - you...
by caveman
Wed Jan 26, 2005 6:21 pm
Forum: Fedora/Red Hat
Topic: Commands
Replies: 10
Views: 5215

I can understand what you are trying to say - but - a) Habit - do anything 21 times - and the force of habit takes over. b) due to a) - allways log in as a normal user - this habit will save your butt somewhere down the line. No proper OS should be seen as a "single-user" environment, unless it is s...
by caveman
Wed Jan 26, 2005 4:16 pm
Forum: Fedora/Red Hat
Topic: Commands
Replies: 10
Views: 5215

In a nutshell "yes" - but you will gain very little by doing that...... If you need some of the programs to be executed as root while logged in as a normal user - check the "sudo" command. This might be a better solution so what you are trying to achieve. Remember that "bin" is where the standard an...