Re: Simple command to reset / clear all logs?

2011-01-12 Thread Adam Vande More
On Wed, Jan 12, 2011 at 1:50 PM, Redd Vinylene wrote: > Will the logs automatically create themselves? I mean, I picture I have to > manually touch a lotta them in order to avoid "cannot find" error messages? > Please don't top post. do something like this: shutdown now rm /var/log/* exit upon

Re: problem with shell script

2011-01-12 Thread Jonathan McKeown
On Wednesday 12 January 2011 17:58:33 David Scheidt wrote: > > ps ax | grep [s]lapd | wc -l > > The [] creates a one-character class that doesn't match the regex. Easier > to type and grep should be a bit faster. And you can save another process by using ps ax | grep -c '[s]lapd' Although as o

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Wed Jan 12 10:09:51 2011 > Date: Wed, 12 Jan 2011 17:04:26 +0100 > From: Redd Vinylene > To: questions > Cc: > Subject: Simple command to reset / clear all logs? > > Hi, > > Is there a simple command to reset / clear everything in my /var/log? I've > d

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

2011-01-12 Thread Tom Limoncelli
On Thu, Jan 13, 2011 at 12:28 AM, Polytropon wrote: > I have strings of the form either "" or > "". I catch them with ... > where "nr" is the name of the string. What I need > is a simple space between and , > so for example "12a" would get "12 a", "6d" would > get "6 d", and "58" would stay unc

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

2011-01-12 Thread Polytropon
On Thu, 13 Jan 2011 01:00:17 -0500, Tom Limoncelli wrote: > $ awk < data.txt > experiment.txt '{ num = $1 ; sub(/[^0-9]+$/, "", > num) ; lets = $1 ; sub(/^[0-9]+/, "", lets); print num " " lets }' ; > diff -cw control.txt experiment.txt > $ # The above puts a space at the end of the first 3 lines

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

2011-01-12 Thread Polytropon
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 and more stupid myself for NOT being able to solve this, even after... some nearly infinite time. :-) I have strings of th

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Bob Hall
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 -exec rm {} \; >

broken links found on your web site

2011-01-12 Thread Jane Formoso
Hello, I just came from visiting your website ( http://www.freebsd.org/fr/gallery/pgallery.html) and found a few links that aren't working and thought you should know: 404 Not Found - http://www.peacesex.com 404 Not Found - http://www.whizkidtech.net/cgi-bin/tutorial/ 404 Not Found - http://c3619

Re: Which php??

2011-01-12 Thread Michael Powell
Gary Kline wrote: [snip] > autoconf: required version 2.68 not found > *** Error code 1 > > Stop in /usr/ports/security/php5-hash. > *** Error code 1 > > Stop in /usr/ports/lang/php5-extensions. > *** Error code 1 > > Stop in /usr/ports/lang/php5-extensions. > Setting these environment variabl

Re: Which php??

2011-01-12 Thread Gary Kline
On Wed, Jan 12, 2011 at 11:01:03PM +, Paul Macdonald wrote: > > >r...@ethic:/usr/local/etc# php -v > >PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) > >Copyright (c) 1997-2009 The PHP Group > >Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies > >r...@ethic

Re: Which php??

2011-01-12 Thread Gary Kline
On Wed, Jan 12, 2011 at 11:01:03PM +, Paul Macdonald wrote: > > >r...@ethic:/usr/local/etc# php -v > >PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) > >Copyright (c) 1997-2009 The PHP Group > >Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies > >r...@ethic

Re: Which php??

2011-01-12 Thread Paul Macdonald
r...@ethic:/usr/local/etc# php -v PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies r...@ethic:/usr/local/etc# Now, as a last re-try to get my wordpress blog port

IP traffic reporting -- simple aggregate bytes to each IP to a log

2011-01-12 Thread Chad Leigh -- Shire.Net LLC
I have an older FreeBSD 6.x machine that I need to install some sort of IP traffic logging daemon on. (This machine is being updated soon to latest -STABLE). I had one once on another machine years ago but I forget the name. It basically just gave me a text file log with aggregate data to e

Re: Which php??

2011-01-12 Thread Polytropon
On Wed, 12 Jan 2011 12:35:04 -0800, Gary Kline wrote: > What should I turn on or off > in the Makefile [or using `make config']? Allow me a quite general comment: Do not modify a port's Makefile directly. The interface to selectable options is usually given by "make config" or the configura

Re: Which php??

2011-01-12 Thread Gary Kline
On Wed, Jan 12, 2011 at 05:58:12PM -0200, Rodrigo Gonzalez wrote: > /usr/local/etc/php.ini > > That is the right file Yep! r...@ethic:/usr/local/etc# php -v PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Redd Vinylene
On Wed, Jan 12, 2011 at 8:58 PM, Polytropon wrote: > # for FILE in /var/log/*; do cat /dev/null > ${FILE}; done > > That would be better than my first suggestion. You can exchange > the part "/var/log/*" for any `find ...` command that specifies > the intended target(s) of your operation better t

Re: Which php??

2011-01-12 Thread Rodrigo Gonzalez
/usr/local/etc/php.ini That is the right file On Wednesday, January 12, 2011 05:53:47 pm Gary Kline wrote: > On Wed, Jan 12, 2011 at 10:02:38AM +, Paul Macdonald wrote: > > >Lots of warnings:: > > > > > > > > >Deprecated: Directive 'register_long_arrays' is deprecated in PHP > > >5.3 and grea

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Polytropon
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 program continuously re-opens the file (after closing it) in APPEND mode, it should be created if non-existent. But if the program

Re: Which php??

2011-01-12 Thread Gary Kline
On Wed, Jan 12, 2011 at 10:02:38AM +, Paul Macdonald wrote: > > >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 Un

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Redd Vinylene
Will the logs automatically create themselves? I mean, I picture I have to manually touch a lotta them in order to avoid "cannot find" error messages? On Wed, Jan 12, 2011 at 8:19 PM, Bernt Hansson wrote: > 2011-01-12 17:04, Redd Vinylene: > > Hi, >> >> Is there a simple command to reset / clea

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Bernt Hansson
2011-01-12 17:04, Redd Vinylene: Hi, Is there a simple command to reset / clear everything in my /var/log? I've done a lot of testing, configuring, trial and error and most of my logs are just full of bullshit and I'd like a fresh start :-) Thanks! Sometimes I use rm /var/log/* Use with utmo

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Polytropon
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 -exec rm {} \; > > may do. Possible problem: Programs that log to files may be confused t

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Kevin Kobb
newsyslog -F ? On 1/12/2011 11:04 AM, Redd Vinylene wrote: Hi, Is there a simple command to reset / clear everything in my /var/log? I've done a lot of testing, configuring, trial and error and most of my logs are just full of bullshit and I'd like a fresh start :-) Thanks! ___

which php5-extensions?

2011-01-12 Thread Gary Kline
tia, folks. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questi

Re: Simple command to reset / clear all logs?

2011-01-12 Thread Ryuichiro Hara
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 -exec rm {} \; may do. # sorry. I wouldn't do that rough and not tested. # Basically, those are just incremental logs, whose # lines are mostly not referred by

Re: problem with shell script

2011-01-12 Thread Ryuichiro Hara
(2011/01/12 23:01), Frank Bonnet 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 in the following shell script : #!/bin/sh SD=0

Re: problem with shell script

2011-01-12 Thread Ryuichiro Hara
(2011/01/13 01:00), Warren Block wrote: On Wed, 12 Jan 2011, Samuel Mart?n Moro wrote: On Wed, Jan 12, 2011 at 3:50 PM, Chad Kellerman wrote: On Wed, Jan 12, 2011 at 9:01 AM, Frank Bonnet wrote: I'm in trouble with a simple shell script that give erroneous value when running ... If I r

Re: problem with shell script

2011-01-12 Thread Chip Camden
Quoth Frank Bonnet on Wednesday, 12 January 2011: > 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 s

Simple command to reset / clear all logs?

2011-01-12 Thread Redd Vinylene
Hi, Is there a simple command to reset / clear everything in my /var/log? I've done a lot of testing, configuring, trial and error and most of my logs are just full of bullshit and I'd like a fresh start :-) Thanks! ___ freebsd-questions@freebsd.org mai

Re: problem with shell script

2011-01-12 Thread Warren Block
On Wed, 12 Jan 2011, Samuel Mart?n Moro wrote: On Wed, Jan 12, 2011 at 3:50 PM, Chad Kellerman wrote: On Wed, Jan 12, 2011 at 9:01 AM, Frank Bonnet wrote: I'm in trouble with a simple shell script that give erroneous value when running ... If I run commands interactively everything runs w

Re: problem with shell script

2011-01-12 Thread David Scheidt
On Jan 12, 2011, at 10:43 AM, Samuel Martín Moro wrote: > On W >> If I run in the following shell script : #!/bin/sh SD=0 SD=`ps -ax | grep slapd | grep -v grep | wc -l` echo $SD the result is 3 !!! >>> >> ps ax | grep "[/]slapd " | wc -l >> > ps

Re: problem with shell script

2011-01-12 Thread Samuel Martín Moro
On Wed, Jan 12, 2011 at 4:34 PM, Samuel Martín Moro wrote: > > > On Wed, Jan 12, 2011 at 3:50 PM, Chad Kellerman wrote: > >> On Wed, Jan 12, 2011 at 9:01 AM, Frank Bonnet wrote: >> >> > Hello >> > >> > I'm in trouble with a simple shell script that give >> > erroneous value when running ... >> >

Re: problem with shell script

2011-01-12 Thread Samuel Martín Moro
On Wed, Jan 12, 2011 at 3:50 PM, Chad Kellerman wrote: > On Wed, Jan 12, 2011 at 9:01 AM, Frank Bonnet 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

Re: problem with shell script

2011-01-12 Thread Chad Kellerman
On Wed, Jan 12, 2011 at 9:01 AM, Frank Bonnet 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 in the following s

Re: protect a single interface with IPFW ?

2011-01-12 Thread Frank Bonnet
Thanks a lot ! On 01/12/2011 04:03 PM, krad wrote: On 12 January 2011 15:01, krad wrote: On 12 January 2011 14:47, Frank Bonnet wrote: 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 ex

Re: protect a single interface with IPFW ?

2011-01-12 Thread krad
On 12 January 2011 15:01, krad wrote: > > > On 12 January 2011 14:47, Frank Bonnet wrote: > >> 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 >> >> ___

Re: protect a single interface with IPFW ?

2011-01-12 Thread krad
On 12 January 2011 14:47, Frank Bonnet wrote: > 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

protect a single interface with IPFW ?

2011-01-12 Thread Frank Bonnet
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/free

Re: Which php??

2011-01-12 Thread Paul Macdonald
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. *For

Re: Which php??

2011-01-12 Thread Paul Macdonald
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:31:01) (DEBUG)

problem with shell script

2011-01-12 Thread Frank Bonnet
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 |