Re: awk question: replacing "%d%s" by "%d %s"

2011-01-13 Thread Polytropon
On Fri, 14 Jan 2011 17:53:04 +1030, Wayne Sierke wrote: > I suspect it is a transcription error by Robert in his email. > > From man awk: > >sub(r, t, s) > substitutes t for the first occurrence of the regular > expression > r in the string s. If s is not giv

Re: awk question: replacing "%d%s" by "%d %s"

2011-01-13 Thread Wayne Sierke
On Fri, 2011-01-14 at 07:17 +0100, Polytropon wrote: > On Thu, 13 Jan 2011 18:22:18 -0600 (CST), Robert Bonomi > wrote: > > True. But > > sub(nr,"[a-z]"," &"); > > > > does the trick. (tested on Freebsd 7.2) > > > > Explamation: "&" is a 'replacement side' magic incantation to the rege

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Thu Jan 13 23:28:08 2011 > From: Carl Johnson > To: freebsd-questions@freebsd.org > Date: Thu, 13 Jan 2011 21:21:40 -0800 > Subject: Re: Simple command to reset / clear all logs? > > Polytropon writes: > > > On Thu, 13 Jan 2011 20:11:03 -0600, Adam Vand

Re: awk question: replacing "%d%s" by "%d %s"

2011-01-13 Thread Polytropon
On Thu, 13 Jan 2011 18:22:18 -0600 (CST), Robert Bonomi wrote: > True. But > sub(nr,"[a-z]"," &"); > > does the trick. (tested on Freebsd 7.2) > > Explamation: "&" is a 'replacement side' magic incantation to the regex > library that means 'that which was matched by the pattern regex'

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Carl Johnson
Polytropon writes: > On Thu, 13 Jan 2011 20:11:03 -0600, Adam Vande More > wrote: >> Amusing, but you're the one full of shit. There's more things to automatic >> log file creation than are thought of in your imagination. > > Adam, > > I think Robert is right at least in regards of SOME > prog

Re: Date of a FreeBSD installation

2011-01-13 Thread Carl Chave
> I'd suggest looking at the Btimes of top level directories > > stat -f "%SB %N" /* Or how about just / as this ~15 minutes earlier than most of the remaining top level directories sodserve# stat -f "%SB %N" /* Jan 9 04:54:21 2011 /COPYRIGHT Jan 9 04:54:21 2011 /bin Jan 9 04:54:21 2011 /boot

Re: Date of a FreeBSD installation

2011-01-13 Thread Carl Johnson
Chip Camden writes: > Quoth Carl Johnson on Thursday, 13 January 2011: >> Polytropon writes: >> >> > On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger wrote: >> >> On Jan 13, 2011, at 1:46 PM, Devin Teske wrote: >> >> > This is nearly always accurate on any FreeBSD system (when wanting to >> >>

Re: zoneedit.com

2011-01-13 Thread Al Plant
Jack L. Stone wrote: I have used zoneedit.com's DNS zone service for about 9 years and it handles a number of static IPs for my companies. Now, suddenly they have created a "new platform" and migrating accounts from the legacy platform to the new. The legacy site doen't work anymore, just confir

Re: Which php??

2011-01-13 Thread Gary Gatten
Is this a record for the longest thread ever? I've been ignoring it because I don't care much about php (relatively speaking), but I'm thinking ill have to read this thread and see what's so interesting! - Original Message - From: owner-freebsd-questi...@freebsd.org To: Gary Kline Cc:

Re: Which php??

2011-01-13 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Thu Jan 13 21:16:20 2011 > Date: Fri, 14 Jan 2011 04:10:25 +0100 > From: Polytropon > To: Gary Kline > Cc: User Questions > Subject: Re: Which php?? > > On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline wrote: > > I cut/pasted part of the config page to

Re: Which php??

2011-01-13 Thread Polytropon
On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline wrote: > I cut/pasted part of the config page to a yello w notepad. It > unfortunately has those unfortunate DOS EOL things with the ^M. There's a simple answer to that waste of disk space (two bytes per line break!): recode c

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Polytropon
On Thu, 13 Jan 2011 20:11:03 -0600, Adam Vande More wrote: > Amusing, but you're the one full of shit. There's more things to automatic > log file creation than are thought of in your imagination. Adam, I think Robert is right at least in regards of SOME programs that use syslogd for logging O

Re: Which php??

2011-01-13 Thread Gary Kline
On Thu, Jan 13, 2011 at 10:45:54PM +, Paul Macdonald wrote: > On 13/01/2011 22:36, Gary Kline wrote: > >On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: > did you follow the procedure in ports/UPDATING about autotools? > > > its the php mysql extension it's moaning about, not

Need some device help

2011-01-13 Thread Robert Boyer
am in the process of moving all of my NAS from open solaris to FreeBSD (I hope?) and have run into a few speed bumps along the way. Maybe I am doing something way way wrong but I cannot seem to find any info at all on some of my issues. I hope this is the right list to ask - if not please steer

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Adam Vande More
On Thu, Jan 13, 2011 at 7:59 PM, Robert Bonomi wrote: > > I *did* read what you said. > > To be blunt, you are full of sh*t as regards any file used by the standard > Berkeley syslog daemon, (syslogd). The Berkeley syslogd is the standard > system log daemon on FreeBSD, although somme people do r

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi
> Date: Thu, 13 Jan 2011 18:31:21 -0600 > Subject: Re: Simple command to reset / clear all logs? > To: questi...@freebsd.org > > On Thu, Jan 13, 2011 at 6:28 PM, Robert Bonomi > wrote: > > > > From: Adam Vande More > > > > > > Please don't top post. > > > > > > do something like this: > > > > >

Attempt to write outside dump device boundaries

2011-01-13 Thread Janos Dohanics
I have been having problems with a newly built system which I have installed 8.2-PRERELEASE amd64. One problem I posted at http://lists.freebsd.org/pipermail/freebsd-questions/2011-January/225822.html (Fernando, thank you for replying). After wiping and reinstalling, I made sure that I could obtai

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Adam Vande More
On Thu, Jan 13, 2011 at 6:28 PM, Robert Bonomi wrote: > > From: Adam Vande More > > > > Please don't top post. > > > > do something like this: > > > > shutdown now rm /var/log/* exit > > > > upon reentering multiuser mode, each logging service will create it's new > > file. > > FALSE TO FACT, wit

Re: Resume from suspend

2011-01-13 Thread Bruce Cran
On Thu, 13 Jan 2011 22:38:56 + Jonathan Fischer Friberg wrote: > Suspending my laptop (a thinkpad edge) works fine (as far as I can > tell). It seems however to be impossible to resume. Is there some > special option that I have to set so that the computer resumes when > pressing the power b

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Thu Jan 13 01:26:33 2011 > Date: Thu, 13 Jan 2011 01:20:14 -0600 > From: Adam Vande More > To: Redd Vinylene > Cc: questions , Bernt Hansson > Subject: Re: Simple command to reset / clear all logs? > > On Wed, Jan 12, 2011 at 1:50 PM, Redd Vinylene >

Re: awk question: replacing "%d%s" by "%d %s"

2011-01-13 Thread Robert Bonomi
> Date: Thu, 13 Jan 2011 06:28:19 +0100 > From: Polytropon > Subject: awk question: replacing "%d%s" by "%d %s" > > I'm aware that this is not an awk question list, but I'm confident there > are many awk gurus here who can surely help me with such a stupid > problem. I also know that I get more

Re: Date of a FreeBSD installation

2011-01-13 Thread RW
On Thu, 13 Jan 2011 21:28:29 +0100 David Demelier wrote: > Hello folks, > > I'm just guessing if there is a way to know a FreeBSD installation > date. We can't look after the uname -a ident since an update of the > FreeBSD kernel is possible. > > I think searching a file absolutely not touched

Resume from suspend

2011-01-13 Thread Jonathan Fischer Friberg
Hi, Suspending my laptop (a thinkpad edge) works fine (as far as I can tell). It seems however to be impossible to resume. Is there some special option that I have to set so that the computer resumes when pressing the power button? (or opening the lid) Jonathan ___

Re: Date of a FreeBSD installation

2011-01-13 Thread Chip Camden
Quoth Carl Johnson on Thursday, 13 January 2011: > Polytropon writes: > > > On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger wrote: > >> On Jan 13, 2011, at 1:46 PM, Devin Teske wrote: > >> > This is nearly always accurate on any FreeBSD system (when wanting to > >> > query the date the machine

Re: Date of a FreeBSD installation

2011-01-13 Thread Chip Camden
Quoth Ivan Voras on Friday, 14 January 2011: > On 13/01/2011 21:28, David Demelier wrote: > >Hello folks, > > > >I'm just guessing if there is a way to know a FreeBSD installation date. > >We can't look after the uname -a ident since an update of the FreeBSD > >kernel is possible. > > If you haven

Re: Which php??

2011-01-13 Thread Gary Kline
On Thu, Jan 13, 2011 at 10:45:54PM +, Paul Macdonald wrote: > On 13/01/2011 22:36, Gary Kline wrote: > >On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: > did you follow the procedure in ports/UPDATING about autotools? > >>> I followed the suggestion from Mike Powell and th

Re: Date of a FreeBSD installation

2011-01-13 Thread Carl Johnson
Polytropon writes: > On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger wrote: >> On Jan 13, 2011, at 1:46 PM, Devin Teske wrote: >> > This is nearly always accurate on any FreeBSD system (when wanting to >> > query the date the machine was built): >> > >> >ls -l /etc/defaults/rc.conf >> >>

Re: Date of a FreeBSD installation

2011-01-13 Thread Ivan Voras
On 13/01/2011 21:28, David Demelier wrote: Hello folks, I'm just guessing if there is a way to know a FreeBSD installation date. We can't look after the uname -a ident since an update of the FreeBSD kernel is possible. If you haven't removed it, a line in /etc/rc.conf should be written by sys

Re: Which php??

2011-01-13 Thread Paul Macdonald
On 13/01/2011 22:36, Gary Kline wrote: On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from Mike Powell and that resolved the problem with autoconf-2.68. I'm trying the oth

Re: Which php??

2011-01-13 Thread Gary Kline
On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: > > >>did you follow the procedure in ports/UPDATING about autotools? > > > > I followed the suggestion from Mike Powell and that resolved the > > problem with autoconf-2.68. I'm trying the others now. See if > > it has

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Polytropon
On Thu, 13 Jan 2011 23:08:33 +0100, Swe Gill wrote: > That is the problem. One file sizes upto 50GB and other 3 GB... > > 52872944 -rw-rw 1 root wheel 50G Jan 13 22:51 > httpd-modsec2_audit.log > 3320928 -rw-rw 1 root wheel 3.2G Jan 13 22:51 > httpd-modsec2_debug.log >

Re: Date of a FreeBSD installation

2011-01-13 Thread Polytropon
On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger wrote: > On Jan 13, 2011, at 1:46 PM, Devin Teske wrote: > > This is nearly always accurate on any FreeBSD system (when wanting to > > query the date the machine was built): > > > > ls -l /etc/defaults/rc.conf > > I gather that you don't ever

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Chris Brennan
On Thu, Jan 13, 2011 at 5:08 PM, Swe Gill wrote: > That is the problem. One file sizes upto 50GB and other 3 GB... > > 52872944 -rw-rw 1 root wheel 50G Jan 13 22:51 > httpd-modsec2_audit.log > 3320928 -rw-rw 1 root wheel 3.2G Jan 13 22:51 > httpd-modsec2_debug.log > > I

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Swe Gill
That is the problem. One file sizes upto 50GB and other 3 GB... 52872944 -rw-rw 1 root wheel 50G Jan 13 22:51 httpd-modsec2_audit.log 3320928 -rw-rw 1 root wheel 3.2G Jan 13 22:51 httpd-modsec2_debug.log I am just standing nowhere to remove the files have tried by s

Re: Date of a FreeBSD installation

2011-01-13 Thread Devin Teske
On Thu, 2011-01-13 at 13:50 -0800, Chuck Swiger wrote: > On Jan 13, 2011, at 1:46 PM, Devin Teske wrote: > > This is nearly always accurate on any FreeBSD system (when wanting to > > query the date the machine was built): > > > > ls -l /etc/defaults/rc.conf > > I gather that you don't ever ru

Re: Date of a FreeBSD installation

2011-01-13 Thread Chuck Swiger
On Jan 13, 2011, at 1:46 PM, Devin Teske wrote: > This is nearly always accurate on any FreeBSD system (when wanting to > query the date the machine was built): > > ls -l /etc/defaults/rc.conf I gather that you don't ever run mergemaster, which would update this file? My machine installed i

Re: Date of a FreeBSD installation

2011-01-13 Thread Devin Teske
On Thu, 2011-01-13 at 13:03 -0800, Chip Camden wrote: > Quoth Chuck Swiger on Thursday, 13 January 2011: > > On Jan 13, 2011, at 12:45 PM, Chip Camden wrote: > > > On my system, /etc/termcap has the date well after my installation > > > (Jun 28 2010) and /etc/rmt dates to well before (Nov 21 2009).

Re: Which php??

2011-01-13 Thread Paul Macdonald
did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from Mike Powell and that resolved the problem with autoconf-2.68. I'm trying the others now. See if it has any affect on mail/php5-imap. you probably won't need imap support i

Re: lock contention problem?

2011-01-13 Thread Hans Petter Selasky
On Thursday 13 January 2011 21:28:15 dieter...@engineer.com wrote: > I suspect that I have a problem with lock/mutex contention. > Reading from a USB disk appears to lock out the firewire driver > for too long, causing data transfer (writing to firewire bus) to fail > with EAGAIN. Once it fails it

Re: problem with shell script

2011-01-13 Thread Devin Teske
On Thu, 2011-01-13 at 14:45 -0600, Robert Bonomi wrote: > > Date: Wed, 12 Jan 2011 15:01:45 +0100 > > From: Frank Bonnet > > Subject: problem with shell script > > > > Hello > > > > I'm in trouble with a simple shell script that give erroneous value when > > running ... > > > > If I run commands

Re: Which php??

2011-01-13 Thread Gary Kline
On Thu, Jan 13, 2011 at 02:24:33PM -0500, David Scheidt wrote: > > On Jan 12, 2011, at 7:18 PM, Gary Kline wrote: > >> > > autoconf: required version 2.68 not found > > *** Error code 1 > > did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from

Re: Date of a FreeBSD installation

2011-01-13 Thread Chip Camden
Quoth Chuck Swiger on Thursday, 13 January 2011: > On Jan 13, 2011, at 12:45 PM, Chip Camden wrote: > > On my system, /etc/termcap has the date well after my installation > > (Jun 28 2010) and /etc/rmt dates to well before (Nov 21 2009). I first > > installed FreeBSD on this system on Apr 1 2010.

Re: Date of a FreeBSD installation

2011-01-13 Thread Chuck Swiger
On Jan 13, 2011, at 12:45 PM, Chip Camden wrote: > On my system, /etc/termcap has the date well after my installation > (Jun 28 2010) and /etc/rmt dates to well before (Nov 21 2009). I first > installed FreeBSD on this system on Apr 1 2010. Certainly the target of the link would change; my /etc/t

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Tim Daneliuk
On 1/13/2011 2:56 PM, Robert Bonomi wrote: >> Date: Wed, 12 Jan 2011 20:58:04 +0100 >> From: Polytropon >> Subject: Re: Simple command to reset / clear all logs? >> >> On Wed, 12 Jan 2011 20:50:04 +0100, Redd Vinylene >> wrote: >>> Will the logs automatically create themselves? >> >> Usually not

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi
> Date: Wed, 12 Jan 2011 20:58:04 +0100 > From: Polytropon > Subject: Re: Simple command to reset / clear all logs? > > On Wed, 12 Jan 2011 20:50:04 +0100, Redd Vinylene > wrote: > > Will the logs automatically create themselves? > > Usually not, but it depends on the logging mechanism. If a pr

Re: Date of a FreeBSD installation

2011-01-13 Thread David DEMELIER
2011/1/13 Chuck Swiger : > On Jan 13, 2011, at 12:28 PM, David Demelier wrote: >> I'm just guessing if there is a way to know a FreeBSD installation date. We >> can't look after the uname -a ident since an update of the FreeBSD kernel is >> possible. >> >> I think searching a file absolutely not

Re: Date of a FreeBSD installation

2011-01-13 Thread Chip Camden
Quoth Chuck Swiger on Thursday, 13 January 2011: > On Jan 13, 2011, at 12:28 PM, David Demelier wrote: > > I'm just guessing if there is a way to know a FreeBSD installation date. We > > can't look after the uname -a ident since an update of the FreeBSD kernel > > is possible. > > > > I think se

Re: problem with shell script

2011-01-13 Thread Robert Bonomi
> Date: Wed, 12 Jan 2011 15:01:45 +0100 > From: Frank Bonnet > Subject: problem with shell script > > Hello > > I'm in trouble with a simple shell script that give erroneous value when > running ... > > If I run commands interactively everything runs well > > > ps ax | grep slapd | grep -v grep

lock contention problem?

2011-01-13 Thread dieterbsd
I suspect that I have a problem with lock/mutex contention. Reading from a USB disk appears to lock out the firewire driver for too long, causing data transfer (writing to firewire bus) to fail with EAGAIN. Once it fails it does not recover. kernel: fwohci1: IT DMA underrun (0x40308011) (stat &

Re: Date of a FreeBSD installation

2011-01-13 Thread Chip Camden
Quoth David Demelier on Thursday, 13 January 2011: > Hello folks, > > I'm just guessing if there is a way to know a FreeBSD installation date. > We can't look after the uname -a ident since an update of the FreeBSD > kernel is possible. > > I think searching a file absolutely not touched ever i

Re: Date of a FreeBSD installation

2011-01-13 Thread Chuck Swiger
On Jan 13, 2011, at 12:28 PM, David Demelier wrote: > I'm just guessing if there is a way to know a FreeBSD installation date. We > can't look after the uname -a ident since an update of the FreeBSD kernel is > possible. > > I think searching a file absolutely not touched ever in the system can

Re: Date of a FreeBSD installation

2011-01-13 Thread Matthias Apitz
El día Thursday, January 13, 2011 a las 09:28:29PM +0100, David Demelier escribió: > Hello folks, > > I'm just guessing if there is a way to know a FreeBSD installation date. > We can't look after the uname -a ident since an update of the FreeBSD > kernel is possible. > > I think searching

Date of a FreeBSD installation

2011-01-13 Thread David Demelier
Hello folks, I'm just guessing if there is a way to know a FreeBSD installation date. We can't look after the uname -a ident since an update of the FreeBSD kernel is possible. I think searching a file absolutely not touched ever in the system can helps but which one? markand@Melon ~ $ ls -

Re: Which php??

2011-01-13 Thread David Scheidt
On Jan 12, 2011, at 7:18 PM, Gary Kline wrote: >> > autoconf: required version 2.68 not found > *** Error code 1 did you follow the procedure in ports/UPDATING about autotools? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org

mail/php5-imap build output...

2011-01-13 Thread Gary Kline
Sorry. Here is the build failure for the mail port that may be blocking my lang/php5-extensions from completing. Anybody??! thanks in advance. ===> Building for php5-imap-5.3.5 /bin/sh /usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/libtool --mode=compile cc -I. -

trouble building mail/php5-imap

2011-01-13 Thread Gary Kline
For unknown reasons the lang/php5-extensions ports fails when it reaches mail/php5-imap? I have upgraded the ports tress by hand and have tried portupgrade and portmanager. I think this (mail/php5-imap) is the only port that won't rebuild. Is there any known problem with this imap port? --

Re: zoneedit.com

2011-01-13 Thread Pierre-Luc Drouin
The legacy platform seems to still work for me: http://legacy.zoneedit.com I had sent some money though to have free service for my existing domains forever. On Thu, Jan 13, 2011 at 11:20 AM, Jack L. Stone wrote: > I have used zoneedit.com's DNS zone service for about 9 years and it > handles a n

Re: zoneedit.com

2011-01-13 Thread Julian H. Stacey
Hi, > So, anyone with this issue out there or know of an alternative company to > replace zoneedit? I wouldnt particularly reccomend my domain registrar - I've sworn at its robot most times I used it (except maybe last couple of times, by when maybe they'd fixed bugs, I'd learnt their thought pro

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Chris Brennan
On Thu, Jan 13, 2011 at 12:00 PM, Swe Gill wrote: > Hi Chris > > I am applying these commands as root but no help... > > What's the size of the log file? ls -lsha /var/log/ | grep modsec2 I'm not sure but I think you need *SOME* free space to delete. If that is the case, move the log to a n

Re: zoneedit.com

2011-01-13 Thread Jack L. Stone
TOP-POST I am pleased to say this has been resolved, thans to Dan at Zoneedit. All the best, Jack At 10:20 AM 1.13.2011 -0600, Jack L. Stone wrote: >I have used zoneedit.com's DNS zone service for about 9 years and it >handles a number of static IPs for my companies. > >Now, suddenly they have c

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Swe Gill
Hi Chris I am applying these commands as root but no help... Regards /S On Thu, Jan 13, 2011 at 5:44 PM, Chris Brennan wrote: > On Thu, Jan 13, 2011 at 5:03 AM, Swe Gill wrote: > >> I just don't understand why I am unable to remove the files... >> > > Pass 'whoami' at the command prompt.

zoneedit.com

2011-01-13 Thread Jack L. Stone
I have used zoneedit.com's DNS zone service for about 9 years and it handles a number of static IPs for my companies. Now, suddenly they have created a "new platform" and migrating accounts from the legacy platform to the new. The legacy site doen't work anymore, just confirms account and redirect

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Chris Brennan
On Thu, Jan 13, 2011 at 5:03 AM, Swe Gill wrote: > I just don't understand why I am unable to remove the files... > Pass 'whoami' at the command prompt. Are you root? If not, part of the wheel group? hth/c- ___ freebsd-questions@freebsd.org mailing li

Re: Simple command to reset / clear all logs?

2011-01-13 Thread Chris Brennan
On Thu, Jan 13, 2011 at 3:38 AM, David Demelier wrote: > But, there is sometime subdirectories in /var/log, it doesn't matter? And > truncate can write on archived files ? such as : > > markand@Melon ~ $ ls /var/log/messages*.bz2 > /var/log/messages.0.bz2 /var/log/messages.1.bz2 > logrotate is yo

Re: problem with shell script

2011-01-13 Thread Samuel Martín Moro
?? as already answered: ps ax | awk '/[/]slapd /{n++} END{print n}' searching '[s]lapd' will avoid grep "auto-matching", but would still return commands like "vim /etc/slapd.conf" or ./myscript-slapd about pgrep, like the usual grep, it needs a better expression than the process name, otherwise it

Re: problem with shell script

2011-01-13 Thread Julien Cigar
just use: pgrep "slapd" On 01/12/2011 15:17, four.harris...@googlemail.com wrote: Hello I'm in trouble with a simple shell script that give erroneous value when running ... If I run commands interactively everything runs well > ps ax | grep slapd | grep -v grep | wc -l 1 If I run

Re: Which php??

2011-01-13 Thread Ian Smith
In freebsd-questions Digest, Vol 345, Issue 7, Message: 11 On Thu, 13 Jan 2011 11:13:02 + Paul Macdonald wrote: > On 13/01/2011 00:18, Gary Kline wrote: > > autoconf: required version 2.68 not found > some stuff here to try for autoconf issues > > http://forums.freebsd.org/showthread.php

protect a single interface with IPFW ?

2011-01-13 Thread four . harrisons
Hello is it possible to protect a single interface with IPFW my server has only one interface and I want to allow only SSH LDAP LDAPS thanks for any examples ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freeb

Re: Which php??

2011-01-13 Thread four . harrisons
> Lots of warnings:: > > > Deprecated: Directive 'register_long_arrays' is deprecated in PHP > 5.3 and greater in Unknown on line 0 > > Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 > and greater in Unknown on line 0 > PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 11 2011 12:3

Re: Which php??

2011-01-13 Thread four . harrisons
On 11/01/2011 16:46, Gary Kline wrote: > > > So:: are there other ways of installing this stuff? Should I > cp -rp this wordpress directory in [e.g.] > /usr/local/www/journey? > > Thanks for any clues, > > gary > It looks like you have a workign apache2 already. *F

problem with shell script

2011-01-13 Thread four . harrisons
Hello I'm in trouble with a simple shell script that give erroneous value when running ... If I run commands interactively everything runs well > ps ax | grep slapd | grep -v grep | wc -l 1 If I run in the following shell script : #!/bin/sh SD=0 SD=`ps -ax | grep slapd | grep -v grep |

Re: Which php??

2011-01-13 Thread Paul Macdonald
On 13/01/2011 00:18, Gary Kline wrote: autoconf: required version 2.68 not found some stuff here to try for autoconf issues http://forums.freebsd.org/showthread.php?t=20284 Alternatively you might want to try installing prebuillt packages instead of building ports, a lot less hassle. pkg_de

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Swe Gill
Hi Peg Thanks for your help by applying "ls -lao". I get following result -rw--- 1 root wheelsappnd 8307655937 Jan 13 10:45 debug.log -rw--- 1 root wheelsappnd 15415 Oct 2 2009 dmesg.today -rw-r--r-- 1 root wheel-0 Oct 2 2009 httpd-a

Re: problem with shell script

2011-01-13 Thread Igor V. Ruzanov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 13 Jan 2011, per...@pluto.rain.com wrote: |David Scheidt wrote: | |> ps ax | grep [s]lapd | wc -l |> |> The [] creates a one-character class that doesn't match the regex. | |Doesn't [s]lapd need to be quoted? [] are special to (at least some

rm: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Swe Gill
Hello there Can anybody help me to solve this problem. I am running freebsd 7 with Apache (with mod_secuirty) and Mysql with RAID10. The Log files have become so huge that server ran out of space. Now, I want to remove the log files but I am unable to remove. Here is the messages: -rw-rw 1

Re: problem with shell script

2011-01-13 Thread perryh
David Scheidt wrote: > ps ax | grep [s]lapd | wc -l > > The [] creates a one-character class that doesn't match the regex. Doesn't [s]lapd need to be quoted? [] are special to (at least some) shells. ___ freebsd-questions@freebsd.org mailing list http

Re: Simple command to reset / clear all logs?

2011-01-13 Thread David Demelier
On 13/01/2011 03:23, Bob Hall wrote: On Wed, Jan 12, 2011 at 08:21:45PM +0100, Polytropon wrote: On Thu, 13 Jan 2011 02:17:10 +0900, Ryuichiro Hara wrote: Hello, It might be all right to remove all "normal file" logs, though you may want to retain all subdirectories. find /var/log -type f -e