mass word find/replace
I am trying to find a way to replace one word in a file with another word, like windows wordpad find/replace. I need to change pn_ to nuke_ and have a 188000 lines to do it on. ugh thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
swap space
I seem to be running out of swap space swapinfo shows 80-95% filled. Mostly from mrtg. is there a way to see whats else is eating it up ? I guess a ls doesn't work on it . this machine has 256megs of ram and 512MB swap space. anything I can do ? Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap space
Hello Thanks, Read the man. so heres a print out. some makes sense. others don't . like what is up referring to ? still tho i don't see what is eating up 373M of swap space ? Last pid: 80656; load averages: 3.21, 3.23, 3.16up 1+10:56:27 09:59:24 59 processes: 4 running, 55 sleeping CPU states: 75.9% user, 0.0% nice, 19.0% system, 5.2% interrupt, 0.0% idle Mem: 179M Active, 19M Inact, 38M Wired, 8212K Cache, 35M Buf, 1744K Free Swap: 512M Total, 373M Used, 139M Free, 72% Inuse, 424K In, 316K Out PID USERNAMEPRI NICE SIZERES STATETIME WCPUCPU COMMAND 342 mysql 2 0 318M 3092K poll21:49 0.05% 0.05% mysqld 13927 root-22 0 173M 91564K swread 32:31 14.01% 14.01% perl 73396 root 51 0 151M 80728K RUN 13:46 23.73% 23.73% perl 39818 snortman 4 0 43844K 2940K bpf 3:06 0.00% 0.00% snort 39189 nobody 18 0 24216K 0K lockf0:25 0.00% 0.00% httpd 39182 nobody 18 0 19096K 0K lockf0:08 0.00% 0.00% httpd 39184 nobody 18 0 19096K 0K lockf0:07 0.00% 0.00% httpd 39183 nobody 18 0 19044K 0K lockf0:21 0.00% 0.00% httpd 39190 nobody -18 0 18540K 6276K spread 0:38 8.84% 8.64% httpd 39186 nobody 18 0 17448K 0K lockf0:38 0.00% 0.00% httpd 39185 nobody 18 0 16580K 0K lockf0:26 0.00% 0.00% httpd 39905 nobody2 0 16576K 144K poll 0:33 0.00% 0.00% httpd 65930 nobody 59 0 16572K 5556K RUN 0:31 12.72% 11.08% httpd 39179 root 2 0 13336K 600K select 0:21 0.00% 0.00% httpd 80023 root -6 0 9848K 6632K piperd 0:07 0.68% 0.68% php 77918 thething 2 0 5708K 308K select 0:02 0.00% 0.00% sshd 77888 root 2 0 5708K 0K sbwait 0:00 0.00% 0.00% sshd - Original Message - From: Alexander Haderer [EMAIL PROTECTED] To: M.D. DeWar [EMAIL PROTECTED]; freebsd [EMAIL PROTECTED] Sent: Friday, December 12, 2003 9:47 AM Subject: Re: swap space At 09:43 12.12.2003 -0500, M.D. DeWar wrote: I seem to be running out of swap space swapinfo shows 80-95% filled. Mostly from mrtg. is there a way to see whats else is eating it up ? top -o size man top Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
snmpd problems
net-snmp: 1 error(s) in config file(s) Error opening specified endpoint 161 Server Exiting with code 1 or Error opening specified endpoint udp:161 Server Exiting with code 1 I don't know were to look for or how to fix. any help appreciated. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
the proces that can be monitored
Hello, I am trying to get net-smnp setup on my system. I'm at the point were it asks for process to monitor but am not sure what ones I can and what they are are called. In the example says httpd for http so I know that one but not sure what it is for memory disk space etc a google search got me nothing useful (but I may not be typing it in right cuz i am not sure what I am looking for) Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
swapspace errors
I am getting these in /var/log/messages. Not sure why, or what is causing it (But did not see them till I installed MRTG/RRDTOOL) How can I fix this or what can be done ? Dec 2 10:01:00 spiderman /kernel: swap_pager_getswapspace: failed Dec 2 10:01:12 spiderman /kernel: swap_pager_getswapspace: failed Dec 2 10:03:25 spiderman last message repeated 28 times Dec 2 10:13:33 spiderman last message repeated 362 times Dec 2 10:23:39 spiderman last message repeated 2103 times Dec 2 10:26:27 spiderman last message repeated 236 times Dec 2 10:26:27 spiderman /kernel: pid 76403 (perl), uid 0, was killed: out of s wap space Dec 2 10:26:28 spiderman /kernel: swap_pager_getswapspace: failed Dec 2 10:26:28 spiderman last message repeated 3 times Dec 2 10:27:18 spiderman /kernel: swap_pager_getswapspace: failed spiderman# swapinfo Device 1K-blocks UsedAvail Capacity Type /dev/ad0s1b524160 414752 10940879%Interleaved Thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swapspace errors
I # out all my mrtg statements in /etc/crontab and now I have no issue with swapspace. So MRTG is causing my problem. Running systat I see that I have like 5 perl commands running which is my mrtg statements. Mark - Original Message - From: Kris Kennaway [EMAIL PROTECTED] To: M.D. DeWar [EMAIL PROTECTED] Cc: freebsd [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 10:34 AM Subject: Re: swapspace errors ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remove ^M characters from xhtml file
I found this one that works cat [filename] | tr -d '/r' out; mv out [new filename] Mark - Original Message - From: Big Daddy EBK [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 01, 2003 4:51 PM Subject: Re: Remove ^M characters from xhtml file Hello everyone, I'm very new to BSD this mailing list so please forgive me should I post incorrectly. Here are some links that may help you with removing the ^M character from any file!! http://www.unixblog.com/quick_unix_tips/remove_m_with_vi.php - I like this one personally, because I've used it before it worked!! http://www.introcomp.co.uk/general/remove_dos.html BigDaddyEBK Unix for Longevity AS/400 for Nostalgia Linux for Productivity MAC for Multimedia Windows for Solitaire Hello tech support? I broke the cup-holder on my computer!! Date: Mon, 1 Dec 2003 23:10:33 +0530 From: Shantanoo Mahajan [EMAIL PROTECTED] Subject: Re: Remove ^M characters from xhtml file To: Robin Schoonover [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii +++ Robin Schoonover [freebsd] [30-11-03 19:17 -0700]: | On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy | [EMAIL PROTECTED] | wrote: | I've downloaded a couple of .xhtml files and they have ^M characters | all through it. I tried the col -b name newname command on these | files but when I do that it erases the whole document. Any ideas? | | dos2unix (converters/unix2dos in ports) is an easy route (dos2unix | name). | Also you can use the tr command (tr -d '\r' name newname). | | -- | Robin Schoonover (aka End) col -bx old.xhtml new.xhtml Shantanoo ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newbie: use CR in RE?
i find this and seems to work good. cat {filename} | tr -d '/r' out; mv out {new filename} It gets rid of all them ^M from the files for me. HTH Mark - Original Message - From: Zhang Weiwu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 22, 2003 8:00 AM Subject: newbie: use CR in RE? Hello. Just want to know how to use special character in Regular Expression. I wish to remove all the carrier returns from a text file, I can use: tr -d \r text_file modified_text_file But if I do: sed -i s/\r//g text_file it actually removes all the character r from the file. This is also a problem in vi(1). Besides CR I wish to manipulate tabstops and line-feeds with RE too. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
more than one library possible ??
Hello, I was going to install mrtg from the ports. As it started to install I saw that it did not find GD and was d/l 1.84 even tho I have 2.0.15 (or whatever it actually is) installed. So I d/l the actual mrtg files and was trying to install it. but it does not like my GD install. Will the mrtg from ports hurt or upset my original GD install ? I have seen other ports try to do the same thing so I stop them cuz I don't want to fubar my box. Thanks Newbie mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
what is this for
[ -x /usr/games/fortune ] /usr/games/fortune freebsd-tips why and what is this command for. I found it in the /home/user directory in the .profile file. no such thing in usr/games. no errors in the message files and searching freebsd ports shows no game called fortune. I assume its a x game but why is it listed ? Thanks mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what is this for
Thanks All. Is it worth installing ? esp for a newbie ? Thanks mark - Original Message - From: Jason Stewart [EMAIL PROTECTED] To: M.D. DeWar [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 10:31 AM Subject: Re: what is this for On 19/11/03 10:10 -0500, M.D. DeWar wrote: [ -x /usr/games/fortune ] /usr/games/fortune freebsd-tips why and what is this command for. I found it in the /home/user directory in the .profile file. no such thing in usr/games. no errors in the message files and searching freebsd ports shows no game called fortune. I assume its a x game but why is it listed ? Thanks mark Hi Mark, Try having a look at the man page for fortune: http://www.freebsd.org/cgi/man.cgi?query=fortuneapropos=0sektion=0manpath=FreeBSD+5.1-RELEASE+and+Portsformat=html You couldn't find it in ports, because fortune is not a port, it's part of the base, and it has nothing to do with X. You probably chose not to install it during the install process. The reason that it's installed by default, I presume, is that it's helpful to new users since it prints out tips about freebsd. Jason ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: statvfs.h
spiderman# find / -name statvfs.h -print spiderman# comes up empty. now what ? Thanks Mark Hmm, dunno. Do you have full system sources installed? Maybe a cvsup Ahh, what version are you running? statvfs.h didn't exist in FBSD before 8-21-2002, and then only in -CURRENT. So, you're on 4.x? KDK spiderman# uname -a FreeBSD spiderman.wirelesscommunitynetworks.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 3 10:53:38 GMT 2003 [EMAIL PROTECTED]:/usr/obj/usr/ src/sys/GENERIC i386 and I did not isntall the src or whatever its called. (sorry to newbie to know all the lingo yet) Thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
owner of dir/files
Hello, A simple question for you in the know unix guys. I just noticed that when I d/led a program and un-tarred it and set it up that the directory in the apache web root has as owner something like 501:www . I also noticed some others that were mysql:mysql or 500:100 for the user/group. I am not sure what happens if left that way. Since there is no user/group for those does it mean the files won't run or be served ? In my web root should all directories and files be nobody:nobody ? what if some are root:wheel ? Thanks Newbie Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
statvfs.h
were do yo u get header files ? or can't you ? I am trying to load a webmin module and it needs some perl modules and one filesys::statvfs needs the header file statsvfs.h and I donthave it. thanks mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OT:php error
I am hoping someone might know what this issue is. I really really don't want to have to join other lists. I am reconfiguring php. This is the ./configure I am using ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --w ith-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --w ith-gd=/usr/local If configure fails try --with-freetype-dir=DIR checking for gdImageString16 in -lgd... no checking for gdImagePaletteCopy in -lgd... no checking for gdImageCreateFromPng in -lgd... no checking for gdImageCreateFromGif in -lgd... no checking for gdImageGif in -lgd... no checking for gdImageWBMP in -lgd... no checking for gdImageCreateFromJpeg in -lgd... no checking for gdImageCreateFromXpm in -lgd... no checking for gdImageCreateFromGd2 in -lgd... no checking for gdImageCreateTrueColor in -lgd... no checking for gdImageSetTile in -lgd... no checking for gdImageEllipse in -lgd... no checking for gdImageSetBrush in -lgd... no checking for gdImageStringTTF in -lgd... no checking for gdImageStringFT in -lgd... no checking for gdImageStringFTEx in -lgd... no checking for gdImageColorClosestHWB in -lgd... no checking for gdImageColorResolve in -lgd... no checking for gdImageGifCtx in -lgd... no checking for gdCacheCreate in -lgd... no checking for gdImageCreate in -lgd... no ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
configure option should be which
Hello, When installing a program that needs the --with-gd or --with-png etc directories am I to put the directory of the .h files (/usr/local/include) or to were the make install put the executables for each (/usr/local/bin) ? Thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
what happens when connection is lost ?
Hello, If I am logged in on a FreeBSD machine with ssh. And doing say a ./configure or make and I lose connection does that stop what I was doing ? data get corrupted etc ? Thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ports out of date error
I am trying to install java. Finally with some help from another person on the java freebsd list I am getting there. However I have run into this error and not sure how to fix it. Your libtool installation is out of date. Please remove and reinstall /usr/ports/devel/libtool. In /usr/local/bin I have libtools. a libtools -- version says 1.4 The /usr/ports/devel/libtool distinfo file says the port is 1.3.4 I tried for the java install make --with-libtool=/usr/local/bin/libtool but that failed. so how do I upgrade the ports part. I am nix DUMB and nix NEWBIE so the easiest way is best :-) THanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
why is it known as unknown
for curiosity and exciting dinner banter, why is it I see programs/application etc referring to FreeBSD as i386-unknown-freebsd4.8 system or when doing a configure it shows as that ? thanks curious cat ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
X11 and Xfree86
What is the difference between x11r6 and xfree86 ? I went to xfree site and ended up at x.org and the d/l are not the same. thanks newbie mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 and Xfree86
Thanks. Now for a more stupider question. What is the purpose of them exactly. I have read the sites but being alien to the unix world it confuses me. Do they just make unix a windows type enviroment ? Is KDE/GNOME the same or they like themes to X windows. ? So confused. but am trying to get away from microsoft. thanks mark - Original Message - From: Payne [EMAIL PROTECTED] To: M.D. DeWar [EMAIL PROTECTED]; freebsd-questions [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 5:11 PM Subject: Re: X11 and Xfree86 X11r6 is the version of xfree86. Payne M.D. DeWar wrote: What is the difference between x11r6 and xfree86 ? I went to xfree site and ended up at x.org and the d/l are not the same. thanks newbie mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
rsync help
I would like to backup some website directorys on one machine to another machine. I have read the rsync man pages and some sites but am still confused about how the command line should be. I will only run it from the command line every so often. I have tried several ways but can't figure it out. I guess I am having issues with how the directories should be listed on the command line. One the server that is to be backed up the directory is /home/sites/www.domain.com/web - all files and other directories are below the /web and in reading it seemed I should keep the trailing slash off. on the server that the files will be copied to the directory is /home/domain/website/ If I understood right the trailing slash should be on this one. ./rsync -ae ssh [EMAIL PROTECTED]:/home/sites/www.domain.com/web /home/domain/website/ am I even close to being right ? thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
wrong name on emails
Hello, When I first setup from FreeBSD 4.8 box I gave it one name, badboy. Then later to due to dns issues I changed it to match DNS. Now when I get an email from the box it says [EMAIL PROTECTED] instead of the new name. I searched every file I can think of. rc.local,rc.conf , resolv.conf and other files but with no luck. I tried egrep -iR badboy / to find it but it was taking a long long time. So killed it. Were do I find it and change it or is it permanently at the original hostname. Thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
d/l,compiling question
Hello, I may have missed this. Sometimes in the docs for a application it will say at a point you need to be root or have superuser permissions to do this I normally login in as user then su - over to superuser. (I hope thats the right terminology). Then I do the ./configure makes etc. Is that okay to do ? or should I be just plain user till its time to make install ? Thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]