Re: Simple command to reset / clear all logs?
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 Harar...@kibug.org 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 that the file has disappeared. How about simply cutting the files to zero length? # cat /dev/null /var/log/* or # truncate -s 0 /var/log/* That will save you two keystrokes, and that's important! ;-) 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 Cheers, -- David Demelier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: problem with shell script
David Scheidt dsche...@panix.com 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://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
rm: httpd-modsec2_debug.log: Operation not permitted
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 root wheel53961237001 Jan 13 09:22 httpd-modsec2_audit.log -rw-rw 1 root wheel 3396921421 Jan 13 09:22 httpd-modsec2_debug.log fbsdserver# rm httpd-modsec2_debug.log rm: httpd-modsec2_debug.log: Operation not permitted fbsdserver# rm -f httpd-modsec2_debug.log rm: httpd-modsec2_debug.log: Operation not permitted I will appreciate any help.,.. Thanks s ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: problem with shell script
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 13 Jan 2011, per...@pluto.rain.com wrote: |David Scheidt dsche...@panix.com 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. Which FreeBSD version do you use? If it above 4.x you could try the following: `pgrep slapd | wc -l' or maybe `pgrep slapd | xargs ps | wc -l' or something like this, it depends on your criteria +---+ ! CANMOS ISP Network! +---+ ! Best regards ! ! Igor V. Ruzanov, network operational staff! ! e-Mail: ig...@canmos.ru ! +---+ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQFNLserbt6QiUlK9twRAvApAKCoIAozDT98VzRkvE3bjPg9Fb2OZwCeLCVj l86YACf0Sd+Gu2vfujQNE/I= =pls0 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: httpd-modsec2_debug.log: Operation not permitted
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-access.log -rw-r--r-- 1 root wheel- 271 Oct 2 2009 httpd-error.log -rw-rw 1 root wheel- 53969161077 Jan 13 10:45 httpd-modsec2_audit.log -rw-rw 1 root wheel- 3397158201 Jan 13 10:44 httpd-modsec2_debug.log -rw-r--r-- 1 root wheelsappnd 28056 Oct 2 2009 lastlog -rw-r--r-- 1 root wheelsappnd 66 Oct 1 2009 lpd-errs I just don't understand why I am unable to remove the files... Regards /S On Thu, Jan 13, 2011 at 10:50 AM, Pegasus Mc Cleaft k...@mthelicon.comwrote: -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Swe Gill Sent: 13 January 2011 09:02 To: freebsd-questions@freebsd.org Subject: rm: httpd-modsec2_debug.log: Operation not permitted fbsdserver# rm httpd-modsec2_debug.log rm: httpd-modsec2_debug.log: Operation not permitted Usually when I see that Operation not permitted message, I start to suspect file flags. Try doing a ls -lao in that directory and see if the log files have the immutable flags set on them. You may wish to take a look at chflags(1) for more information. Peg -- With best regards /S ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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_delete php5* pkg_add -r php5 pkg_add -r php5-extensions (I'm not sure what extensions the package has, but i'd be surprised if it didn't include mysql) -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
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 | wc -l 1 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 !!! Any info welcome ! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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 PHP *cd /usr/ports/lang/php5 make config ( choose apache module) make install clean *PHP5 Extensions *(lots to choose from but make sure you have mysql at least selected ( you'll need this installed obv for wordpress too ) cd /usr/ports/lang/php5-extensions make config make install clean in your apache httpd.conf in the AddType section add AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps In the DirectoryIndex section (or on a new line after it) Add this line DirectoryIndex index.php index.html index.htm *Checks *On shell do php-v on a webpage in your webroot (e.g test.php) add this php code ?php phpinfo(); ? http://localhost/test.php If that shows you a nice php page then you should be good to go with the wordpress installer Good luck! Paul. -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies This is kinda good, at least its installed ! To turn off deprecated notices in looging: edit /usr/local/etc/php.ini ( approx line 523) error_reporting = E_ALL ~E_DEPRECATED Make php log errors: ( line approx 646) error_log = /var/log/php_errors.log then try php -v from shell, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
protect a single interface with IPFW ?
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/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
In freebsd-questions Digest, Vol 345, Issue 7, Message: 11 On Thu, 13 Jan 2011 11:13:02 + Paul Macdonald p...@ifdnrg.com 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?t=20284 Alternatively you might want to try installing prebuillt packages instead of building ports, a lot less hassle. pkg_delete php5* pkg_add -r php5 pkg_add -r php5-extensions (I'm not sure what extensions the package has, but i'd be surprised if it didn't include mysql) You'd also be surprised if the php5 package didn't include the Apache module, right? That's why lots of people installed PHP in the first place, no? Lots of people have been thus surprised, for years now. Seeing Gary already has the module built, he could save it, remove then install the package and replace the module IF php was otherwise built with the same options, but the only way to get the module is build it. In the almost singular case of php, I'd stick with building the port(s). cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: problem with shell script
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 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 !!! Any info welcome ! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: problem with shell script
?? 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 would return the same results as a grep however, a perfect match may be done looking for the exact path ('[/]usr/local/bin/slapd '), but would still fail when, for ex. running `objdump /usr/local/bin/slapd -x' also, if you want to count the number of outputed lines, using [p]grep and wc makes two processes, while awk can do it all alone. awk ftw! On Wed, Jan 12, 2011 at 3:17 PM, 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 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 !!! Any info welcome ! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Samuel Martín Moro {EPITECH.} 2011 CamTrace S.A.S Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
On Thu, Jan 13, 2011 at 3:38 AM, David Demelier demelier.da...@gmail.comwrote: 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 your friend. [root@blackdragon /usr/ports]# make search name=logrotate Port: logrotate-3.7.9 Path: /usr/ports/sysutils/logrotate Info: Daemon to rotate, compress, remove and mail system log files Maint: j...@iksz.hu B-deps: gettext-0.18.1.1 gmake-3.81_4 libiconv-1.13.1_1 popt-1.16 R-deps: gettext-0.18.1.1 libiconv-1.13.1_1 popt-1.16 WWW: [root@blackdragon /usr/ports]# hth/c- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: httpd-modsec2_debug.log: Operation not permitted
On Thu, Jan 13, 2011 at 5:03 AM, Swe Gill sweg...@gmail.com 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 list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
zoneedit.com
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 redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: httpd-modsec2_debug.log: Operation not permitted
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 xa...@xaerolimit.net wrote: On Thu, Jan 13, 2011 at 5:03 AM, Swe Gill sweg...@gmail.com 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- -- With best regards /S ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zoneedit.com
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 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 redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: httpd-modsec2_debug.log: Operation not permitted
On Thu, Jan 13, 2011 at 12:00 PM, Swe Gill sweg...@gmail.com 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 new device, then delete it from the target device. Alternatively you could compress the log and target it to a new device, giving you at least a backup. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zoneedit.com
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 process, or just got tired). My domain registrar too upgraded to a new system maybe a couple of years ago. After a while I realised they'd bought a generic domain registrar's web interface customised it for their business, - so one might jump ship to a new registrar see the same problems if unlucky. Which domain registrars use what etc, I wouldn't know, but you could try http://lists.freebsd.org/mailman/listinfo/freebsd-isp i...@freebsd.org Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, or HTML or base 64. Avoid top posting, it cripples itemised cumulative responses. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zoneedit.com
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 ja...@sage-american.comwrote: 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 redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
trouble building mail/php5-imap
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? -- 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-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mail/php5-imap build output...
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. -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap -DPHP_ATOM_INC -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/include -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/main -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/c-client -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -fno-strict-aliasing -pipe -O0 -c /usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/php_imap.c -o php_imap.lo cc -I. -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap -DPHP_ATOM_INC -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/include -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/main -I/usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/c-client -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -fno-strict-aliasing -pipe -O0 -c /usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/php_imap.c -fPIC -DPIC -o .libs/php_imap.o In file included from /usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/php_imap.c:44: /usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory In file included from /usr/ports/mail/php5-imap/work/php-5.3.5/ext/imap/php_imap.c:44: /usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before 'pcre' *** Error code 1 1 error *** Error code 1 Stop in /usr/ports/mail/php5-imap. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.97a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ethic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Date of a FreeBSD installation
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 -l /root/.cshrc -rw-r--r-- 2 root wheel 798 19 Jul 04:17 /root/.cshrc It seems that this file has the FreeBSD dist access time so can't refers to neither. Do you have any clue? Cheers, -- David Demelier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 a file absolutely not touched ever in the system can helps but which one? markand@Melon ~ $ ls -l /root/.cshrc -rw-r--r-- 2 root wheel 798 19 Jul 04:17 /root/.cshrc It seems that this file has the FreeBSD dist access time so can't refers to neither. Do you have any clue? I always use for this the oldest installed pkg: $ ls -lt /var/db/pkg HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 helps but which one? Symlinks under /etc are a good choice: # cd /etc ; ls -ltr | head total 1242 lrwxrwxrwx 1 root wheel 23 May 26 2001 termcap@ - /usr/share/misc/termcap lrwxrwxrwx 1 root wheel 13 May 26 2001 rmt@ - /usr/sbin/rmt Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 in the system can helps but which one? markand@Melon ~ $ ls -l /root/.cshrc -rw-r--r-- 2 root wheel 798 19 Jul 04:17 /root/.cshrc It seems that this file has the FreeBSD dist access time so can't refers to neither. Do you have any clue? Cheers, -- David Demelier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org The date on the /home symlink reflects my install date. I don't think anything would touch that. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpsDq2vwbc7R.pgp Description: PGP signature
lock contention problem?
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 OHCI_CNTL_CYCMATCH_S) last message repeated 63 times This is from the end of the fwohci_itxbuf_enable() function in dev/firewire/fwohci.c I added LOCK_PROFILING to the kernel and gathered some data. The data is quite verbose, so I sorted by max and am including the first 40 lines. This is a true real-time task, so I am concerned with the worst case rather than the average. First, data from approx 20 seconds without a problem: debug.lock.prof.enable: 0 debug.lock.prof.reset: 0 debug.lock.prof.stats: max wait_max total wait_total countavg wait_avg cnt_hold cnt_lock name 16990 0 2216486 01837 1206 0 0 0 /usr/src/sys/kern/vfs_vnops.c:533 (lockmgr:ufs) 5852 0 11669 0 18648 0 0 0 /usr/src/sys/kern/vfs_subr.c:1693 (lockmgr:syncer) 1659 05522 0 34162 0 0 0 /usr/src/sys/kern/vfs_mount.c:2231 (sleep mutex:struct mount mtx) 1540 0 30353 0 15283 1 0 0 0 /usr/src/sys/kern/sys_pipe.c:574 (sleep mutex:pipe mutex) 1415 0 1885651 0 53865 35 0 0 0 /usr/src/sys/vm/vm_map.c:3526 (sx:user map) 1385 0 252414 0 53865 4 0 0 0 /usr/src/sys/vm/vm_fault.c:937 (sleep mutex:vm object) 1361 0 84475 0 53865 1 0 0 0 /usr/src/sys/vm/vm_fault.c:938 (sleep mutex:vm page queue mutex) 1044 02079 0 2 1039 0 0 0 /usr/src/sys/kern/vfs_mount.c:2194 (sleep mutex:struct mount mtx) 934 0 65031 0 146445 0 0 0 /usr/src/sys/vm/vm_pager.c:311 (lockmgr:bufwait) 864 0 194008 0 53865 3 0 0 0 /usr/src/sys/amd64/amd64/pmap.c:2958 (sleep mutex:pmap) 864 0 192948 0 53865 3 0 0 0 /usr/src/sys/amd64/amd64/pmap.c:2957 (sleep mutex:vm page queue mutex) 862 0 24690 0 30823 0 0 0 /usr/src/sys/kern/kern_mutex.c:147 (sleep mutex:nfe0) 857 0 84478 0 53863 1 0 0 0 /usr/src/sys/amd64/amd64/trap.c:740 (sleep mutex:process lock) 697 0 154340 03292 46 0 0 0 /usr/src/sys/kern/vfs_bio.c:2559 (lockmgr:bufwait) 557 0 896107 0 13438 66 0 0 0 /usr/src/sys/kern/vfs_bio.c:1835 (lockmgr:bufwait) 519 01615 0 11146 0 0 0 /usr/src/sys/ufs/ffs/ffs_vfsops.c:1321 (sleep mutex:struct mount mtx) 481 0 24417 0 13438 1 0 0 0 /usr/src/sys/kern/vfs_subr.c:1595 (sleep mutex:bufobj interlock) 367 0 65371 09178 7 0 0 0 /usr/src/sys/kern/sys_pipe.c:643 (sleep mutex:pipe mutex) 351 02324 0 52 44 0 0 0 /usr/src/sys/kern/vfs_subr.c:2083 (lockmgr:ufs) 333 0 325772 0 53865 6 0 0 0 /usr/src/sys/vm/vm_fault.c:297 (sleep mutex:vm object) 329 0 171709 0 108608 1 0 0 0 /usr/src/sys/amd64/amd64/pmap.c:3989 (sleep mutex:pmap) 329 02090 0 534 3 0 0 0 /usr/src/sys/kern/vfs_subr.c:337 (sleep mutex:struct mount mtx) 327 0 99170 0 58917 1 0 0 0 /usr/src/sys/vm/vm_page.c:1052 (sleep mutex:vm page queue free mutex) 305 0 514 0 4128 0 0 0 /usr/src/sys/vm/vm_object.c:541 (sleep mutex:vm object) 304 0 304 0 1304 0 0 0 /usr/src/sys/vm/uma_core.c:1565 (sleep mutex:UMA lock) 297 0 359 0 13 27 0 0 0 /usr/src/sys/kern/vfs_bio.c:3611 (sleep mutex:vm object) 296 0 23341 0 983 23 0 0 0 /usr/src/sys/kern/tty_ttydisc.c:467 (sleep mutex:ttymtx) 291 0 448 0 6 74 0 0 0 /usr/src/sys/vm/vm_object.c:1719 (sleep mutex:vm object) 284 0 12090 0 997 12 0 0 0 /usr/src/sys/kern/sys_generic.c:1446 (sleep mutex:select mtxpool) 281 08752 0 955 9 0 0 0
Re: problem with shell script
Date: Wed, 12 Jan 2011 15:01:45 +0100 From: Frank Bonnet f.bon...@esiee.fr 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 | wc -l 1 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 !!! Advice: don't try to 'out-think' the machine -- make it _show_ you what it is doing. Change the script to: SD=`ps -ax | grep slapd | grep -v grep | tee /dev/tty | wc -l` echo $SD I suspect thet the -name- of the script file has 'slapd' in it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 searching a file absolutely not touched ever in the system can helps but which one? Symlinks under /etc are a good choice: # cd /etc ; ls -ltr | head total 1242 lrwxrwxrwx 1 root wheel 23 May 26 2001 termcap@ - /usr/share/misc/termcap lrwxrwxrwx 1 root wheel 13 May 26 2001 rmt@ - /usr/sbin/rmt Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 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. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpd4KqKCYv80.pgp Description: PGP signature
Re: Date of a FreeBSD installation
2011/1/13 Chuck Swiger cswi...@mac.com: 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 helps but which one? Symlinks under /etc are a good choice: # cd /etc ; ls -ltr | head total 1242 lrwxrwxrwx 1 root wheel 23 May 26 2001 termcap@ - /usr/share/misc/termcap lrwxrwxrwx 1 root wheel 13 May 26 2001 rmt@ - /usr/sbin/rmt Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org markand@Melon ~ $ cd /etc ; ls -ltr | head total 612 drwxr-xr-x 2 root wheel 512 19 Jul 04:16 zfs drwxr-xr-x 2 root wheel 512 19 Jul 04:16 skel Same that my original post. I have not installed FreeBSD on July but as Chip says the /home symlink is a pretty good choice :-) Thanks -- Demelier David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
Date: Wed, 12 Jan 2011 20:58:04 +0100 From: Polytropon free...@edvax.de Subject: Re: Simple command to reset / clear all logs? On Wed, 12 Jan 2011 20:50:04 +0100, Redd Vinylene reddvinyl...@gmail.com 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 keeps the file open and just writes to it, it can cause trouble. Good programs check the return code of the writing operation and signal an error. Bad programs don't do that, they just keep writing to nowhere. :-) _syslogd_ *explicitly* does -not- _create_ any log files. it is documented in the manpages that it behaves that way. Whether or not this is a good idea is debatable, but it does allow you to suppress some logging w/o having to edit the syslog.conf file and/or re-start syslogd. I mean, I picture I have to manually touch a lotta them in order to avoid cannot find error messages? Syslog does -not- give any such messages, it just doesn't write the message anywere. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
On 1/13/2011 2:56 PM, Robert Bonomi wrote: Date: Wed, 12 Jan 2011 20:58:04 +0100 From: Polytropon free...@edvax.de Subject: Re: Simple command to reset / clear all logs? On Wed, 12 Jan 2011 20:50:04 +0100, Redd Vinylene reddvinyl...@gmail.com 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 keeps the file open and just writes to it, it can cause trouble. Good programs check the return code of the writing operation and signal an error. Bad programs don't do that, they just keep writing to nowhere. :-) _syslogd_ *explicitly* does -not- _create_ any log files. it is documented in the manpages that it behaves that way. Whether or not this is a good idea is debatable, but it does allow you to suppress some logging w/o having to edit the syslog.conf file and/or re-start syslogd. I mean, I picture I have to manually touch a lotta them in order to avoid cannot find error messages? Syslog does -not- give any such messages, it just doesn't write the message anywere. It's worth noting that if you delete an open file, any programs with open write handles to the file can still write to it and thus chew up disk space. So ... you can't just reach in and delete log files unless you're sure nothing has them open. -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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/termcap points to: -r--r--r-- 1 root wheel 206901 Dec 14 21:03 /usr/share/misc/termcap This particular box I'm looking at had been updated from FreeBSD-4.x through 7-STABLE, so a 2001 timestamp for the original installs seems about right. I wonder, are you folks using something other than UFS for / filesystem...perhaps ZFS or whatever handles the dates on symlinks differently? Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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. Certainly the target of the link would change; my /etc/termcap points to: -r--r--r-- 1 root wheel 206901 Dec 14 21:03 /usr/share/misc/termcap This particular box I'm looking at had been updated from FreeBSD-4.x through 7-STABLE, so a 2001 timestamp for the original installs seems about right. I wonder, are you folks using something other than UFS for / filesystem...perhaps ZFS or whatever handles the dates on symlinks differently? Regards, -- -Chuck I'm all UFS. My first installation was 8.0-RELEASE. At that time, I don't think termcap was even a symlink, but I could be mistaken. I'm looking at the date on the symlink itself, not its target. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgplVikbzxCvp.pgp Description: PGP signature
Re: Which php??
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 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. -- 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-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: problem with shell script
On Thu, 2011-01-13 at 14:45 -0600, Robert Bonomi wrote: Date: Wed, 12 Jan 2011 15:01:45 +0100 From: Frank Bonnet f.bon...@esiee.fr 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 | wc -l 1 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 !!! Advice: don't try to 'out-think' the machine -- make it _show_ you what it is doing. Might I suggest the oft-overlooked o option to ps(1)... ps axo ucomm | grep -c slapd I can't think of anything better to achieve what the OP wanted. Naturally... for those that need more (that is, if you want to see meaningful output rather than just the line-count)... try: ps axo pid,state,ucomm or: ps axo pid,command | awk '$2~/slapd/{print}' naturally, for ``wider'' output: ps axwwwo pid,command | awk '$2~/slapd/{print}' And the creme-de-la-creme: ps axwwwo pid,command | awk '$2~^slapd$||$2~/slapd${print}' which will only print a line if the first word of the entire command is wholly slapd or ends in /slapd. Additional solutions/combinations left as an exercise to the reader. -- Devin (full sig at bottom) Change the script to: SD=`ps -ax | grep slapd | grep -v grep | tee /dev/tty | wc -l` echo $SD I suspect thet the -name- of the script file has 'slapd' in it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Cheers, Devin Teske - CONTACT INFORMATION - Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.te...@fisglobal.com - LEGAL DISCLAIMER - This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. - FUN STUFF - -BEGIN GEEK CODE BLOCK- Version 3.1 GAT/CS d(+) s: a- C++() UB$ P++() L++() !E--- W++ N? o? K- w O M+ V- PS+ PE Y+ PGP- t(+) 5? X+(++) R++ tv(+) b+(++) DI+(++) D(+) G+++ e+ h r++ y+ --END GEEK CODE BLOCK-- http://www.geekcode.com/ - END TRANSMISSION - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lock contention problem?
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 does not recover. kernel: fwohci1: IT DMA underrun (0x40308011) (stat OHCI_CNTL_CYCMATCH_S) last message repeated 63 times This is from the end of the fwohci_itxbuf_enable() function in dev/firewire/fwohci.c I added LOCK_PROFILING to the kernel and gathered some data. The data is quite verbose, so I sorted by max and am including the first 40 lines. This is a true real-time task, so I am concerned with the worst case rather than the average. Hi, It might be a hardware resource starvation problem. It is possible to nice umass by simply adding a line like: .interval = 2,/* 2 milliseconds */ Inside the following structure in /sys/dev/usb/storage/umass.c : umass_bbb_config[] In states: UMASS_T_BBB_DATA_WRITE UMASS_T_BBB_DATA_READ Another idea: http://svn.freebsd.org/changeset/base/217350 --HPS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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 in php, so you could just deselect this in make config. Paul. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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). I first installed FreeBSD on this system on Apr 1 2010. Certainly the target of the link would change; my /etc/termcap points to: -r--r--r-- 1 root wheel 206901 Dec 14 21:03 /usr/share/misc/termcap This particular box I'm looking at had been updated from FreeBSD-4.x through 7-STABLE, so a 2001 timestamp for the original installs seems about right. I wonder, are you folks using something other than UFS for / filesystem...perhaps ZFS or whatever handles the dates on symlinks differently? Regards, -- -Chuck I'm all UFS. My first installation was 8.0-RELEASE. At that time, I don't think termcap was even a symlink, but I could be mistaken. I'm looking at the date on the symlink itself, not its target. 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 But again... not always. Though for all situations where the answer is _NOT_ the correct answer... there's usually a damned-good explanation why (the machine was rsync'd etc.), in which case I still consider the date returned to be accurate (for any time /etc/defaults/rc.conf -- or perhaps even better... /etc/rc -- is touched, I'd consider the system to be rebuilt since those files should be somewhat golden on a system -- read: never touched except during system upgrade or rsync etc.). -- Cheers, Devin Teske - CONTACT INFORMATION - Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.te...@fisglobal.com - LEGAL DISCLAIMER - This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. - END TRANSMISSION - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 in 2001 has a Dec 2010 date for that file: -r--r--r-- 1 root wheel 36037 Dec 1 14:13 /etc/defaults/rc.conf Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 run mergemaster, which would update this file? My machine installed in 2001 has a Dec 2010 date for that file: I view the running of mergemaster as part of a system upgrade which at that point... I'm saying that the system is undergoing a rebuild in which case, `ls -ltr /etc/defaults/rc.conf' is accurate (but, yes... I agree with you that this is dependent upon the definition of accurate -- entirely subjective to the definition of when did I build this machine?; not everybody considers built to be inception). That being said... because mergemaster _can_ touch every file on the system, you really can't get an accurate answer from _any_ file's timestamp. You're going to have to resort to things that aren't touched during a system upgrade if you want to find out the `true' answer as to when the box was first ... what? partitioned? newfs'd? clue me in here. What _is_ the definition of built ??? When the hardware pieces were coalesced into a single chassis? If that's the case, I'd be looking at model numbers of internal parts. -r--r--r-- 1 root wheel 36037 Dec 1 14:13 /etc/defaults/rc.conf Regards, -- Cheers, Devin Teske - CONTACT INFORMATION - Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.te...@fisglobal.com - LEGAL DISCLAIMER - This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. - END TRANSMISSION - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: httpd-modsec2_debug.log: Operation not permitted
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 setting flags, changing modes all as a root but no luck yet... Any help? /S On Thu, Jan 13, 2011 at 6:20 PM, Chris Brennan xa...@xaerolimit.net wrote: On Thu, Jan 13, 2011 at 12:00 PM, Swe Gill sweg...@gmail.com 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 new device, then delete it from the target device. Alternatively you could compress the log and target it to a new device, giving you at least a backup. -- With best regards /S ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: httpd-modsec2_debug.log: Operation not permitted
On Thu, Jan 13, 2011 at 5:08 PM, Swe Gill sweg...@gmail.com 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 am just standing nowhere to remove the files have tried by setting flags, changing modes all as a root but no luck yet... Any help? /S Sweet Jebus! Ever hear of logrotate[1]? That would at least have solved this problem in advance. My previous idea still stands. I believe rm (-f) still requires *SOME* free space on a device to delete something. That being said, do you have more then 50G free elsewhere on the system? Say /home (/usr/home)? If you do, mv the file from /var/log to /usr/home. This would effectively delete it from /var/log and free up it's space. Once it's moved to a different location, you should have no problems doing with it as you wish, compress and archive it or just arbitrarily delete it from the new device if no backup is needed. [1] I use a default setup for logrotate, it then archives each file in /var/log, I then just archive /var/log/*.bz2 based on date and delete the old bz2 archives from /var/log. This keeps /var/log pretty trimmed and the only time it runs out of space is when something goes wild and eats up all of it's space before logrotate can clean things up. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger cswi...@mac.com 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 run mergemaster, which would update this file? My machine installed in 2001 has a Dec 2010 date for that file: -r--r--r-- 1 root wheel 36037 Dec 1 14:13 /etc/defaults/rc.conf Exactly that was my thought. Maybe a file that is NOT subject to one of the system upgrade procedures would be better? Maybe something in /boot? % ls -l /etc/defaults/rc.conf -r--r--r-- 1 root wheel 34300 Aug 24 2008 /etc/defaults/rc.conf % ls -l /boot/defaults/loader.conf -r--r--r-- 1 root wheel 19426 Aug 24 2008 /boot/defaults/loader.conf No, forget about that, also nonsense, looks to new... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: httpd-modsec2_debug.log: Operation not permitted
On Thu, 13 Jan 2011 23:08:33 +0100, Swe Gill sweg...@gmail.com 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 am just standing nowhere to remove the files have tried by setting flags, changing modes all as a root but no luck yet... Any help? Is your system running on a raised securelevel maybe? See in man security where this is mentioned, section SECURING THE KERNEL CORE, RAW DEVICES, AND FILE SYSTEMS. It seems that this could cause different behaviour in relation to flags. I will _not_ advise you to kill the files per inode (fsdb, clri) because this could cause further filesystem trouble. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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 any affect on mail/php5-imap. you probably won't need imap support in php, so you could just deselect this in make config. Paul. Here is what message is posted to the top of www.thought.org/blog/ where I cp'd -rp the whole of wordpress files. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.o wHen i looked at the directory with firefox3 file:///usr/local/www/wordpress, there was a similar complain. I did not believe it--because I *do* have mysql installed. Moreover, I set up a wordpress database and wordpress_user, and all the rest of it. So far I am heading into the third day of this: trying to get the wordpress port working on my site. (It strikes me as more than a bit ironic that one of the things in the wp description is that it looks SO simple. Not my experience!) Question:: which MySQL should I have installed to get the port working? I am been debugging this stuff bit-by-bit. So far, I've upgraded the entire 700 ports since last October. I have kept ``ethic'' to be a server: DNS, mail, and web. Be great to host wordpress working so any help will be v much appreciated! gary -- 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-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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 others now. See if it has any affect on mail/php5-imap. you probably won't need imap support in php, so you could just deselect this in make config. Paul. Here is what message is posted to the top of www.thought.org/blog/ where I cp'd -rp the whole of wordpress files. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.o wHen i looked at the directory with firefox3 file:///usr/local/www/wordpress, there was a similar complain. I did not believe it--because I *do* have mysql installed. Moreover, I set up a wordpress database and wordpress_user, and all the rest of it. So far I am heading into the third day of this: trying to get the wordpress port working on my site. (It strikes me as more than a bit ironic that one of the things in the wp description is that it looks SO simple. Not my experience!) Question:: which MySQL should I have installed to get the port working? I am been debugging this stuff bit-by-bit. So far, I've upgraded the entire 700 ports since last October. I have kept ``ethic'' to be a server: DNS, mail, and web. Be great to host wordpress working so any help will be v much appreciated! gary its the php mysql extension it's moaning about, not the mysql server. what do you get from pkg_version -Iv | grep php5 i wouldn't normally do it like this, but in your case i'd be tempted to cd /usr/ports/databases/php5-mysql make install clean cross fingers restart apache ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 sysinstall at system install time: # -- sysinstall generated deltas -- # Sun Sep 14 16:13:22 2008 On a newer system (7+?), the timestamp of /etc/hostid would be from the first boot. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
Polytropon free...@edvax.de writes: On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger cswi...@mac.com 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 run mergemaster, which would update this file? My machine installed in 2001 has a Dec 2010 date for that file: -r--r--r-- 1 root wheel 36037 Dec 1 14:13 /etc/defaults/rc.conf Exactly that was my thought. Maybe a file that is NOT subject to one of the system upgrade procedures would be better? Maybe something in /boot? % ls -l /etc/defaults/rc.conf -r--r--r-- 1 root wheel 34300 Aug 24 2008 /etc/defaults/rc.conf % ls -l /boot/defaults/loader.conf -r--r--r-- 1 root wheel 19426 Aug 24 2008 /boot/defaults/loader.conf No, forget about that, also nonsense, looks to new... How about /var/empty: % ls -ldo /var/empty/ dr-xr-xr-x 2 root wheel schg 512 Jul 18 19:16 /var/empty/ It can be changed, but doesn't look likely. -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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 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 in php, so you could just deselect this in make config. Paul. Here is what message is posted to the top of www.thought.org/blog/ where I cp'd -rp the whole of wordpress files. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.o wHen i looked at the directory with firefox3 file:///usr/local/www/wordpress, there was a similar complain. I did not believe it--because I *do* have mysql installed. Moreover, I set up a wordpress database and wordpress_user, and all the rest of it. So far I am heading into the third day of this: trying to get the wordpress port working on my site. (It strikes me as more than a bit ironic that one of the things in the wp description is that it looks SO simple. Not my experience!) Question:: which MySQL should I have installed to get the port working? I am been debugging this stuff bit-by-bit. So far, I've upgraded the entire 700 ports since last October. I have kept ``ethic'' to be a server: DNS, mail, and web. Be great to host wordpress working so any help will be v much appreciated! gary its the php mysql extension it's moaning about, not the mysql server. what do you get from pkg_version -Iv | grep php5 Ouch doesn't look good! q0 14:51 Server ethic [5001] pkg_version -Iv | grep php5 pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring php5-5.3.5 succeeds index (index has 5.3.2_1) php5-dom-5.3.5 succeeds index (index has 5.3.2_1) php5-extensions-1.4 = up-to-date with index php5-gd-5.3.5 succeeds index (index has 5.3.2_1) php5-hash-5.3.5succeeds index (index has 5.3.2_1) php5-iconv-5.3.5 succeeds index (index has 5.3.2_1) php5-imap-5.3.5succeeds index (index has 5.3.2_1) php5-json-5.3.5succeeds index (index has 5.3.2_1) php5-mysql-5.3.5 succeeds index (index has 5.3.2_1) php5-mysqli-5.3.5 succeeds index (index has 5.3.2_1) php5-pdo-5.3.5 succeeds index (index has 5.3.2_1) php5-pdo_sqlite-5.3.5 succeeds index (index has 5.3.2_1) php5-posix-5.3.5 succeeds index (index has 5.3.2_1) php5-readline-5.3.5succeeds index (index has 5.3.2_1) php5-recode-5.3.5 succeeds index (index has 5.3.2_1) php5-session-5.3.5 succeeds index (index has 5.3.2_1) php5-simplexml-5.3.5 succeeds index (index has 5.3.2_1) php5-sqlite-5.3.5 succeeds index (index has 5.3.2_1) php5-tokenizer-5.3.5 succeeds index (index has 5.3.2_1) php5-xml-5.3.5 succeeds index (index has 5.3.2_1) php5-xmlreader-5.3.5 succeeds index (index has 5.3.2_1) php5-xmlwriter-5.3.5 succeeds index (index has 5.3.2_1) php5-zip-5.3.5 succeeds index (index has 5.3.2_1) php5-zlib-5.3.5succeeds index (index has 5.3.2_1) pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring UGh. I messed up trying to make the output loook like it does on my knosole/xterm. That's about it. Note that I was under the [mis-] understanding that I thought that mysql was mysql. I have a fairly recent version of mysql5. i wouldn't normally do it like this, but in your case i'd be tempted to cd /usr/ports/databases/php5-mysql make install clean cross fingers restart apache Will do. See if I get lucky by installing the PHP flavor of mysql gary PS: Coming soon, if so:: a howto on my
Re: Date of a FreeBSD installation
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't removed it, a line in /etc/rc.conf should be written by sysinstall at system install time: # -- sysinstall generated deltas -- # Sun Sep 14 16:13:22 2008 On a newer system (7+?), the timestamp of /etc/hostid would be from the first boot. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org /etc/hostid has the right date for me. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgprYENDxM96I.pgp Description: PGP signature
Re: Date of a FreeBSD installation
Quoth Carl Johnson on Thursday, 13 January 2011: Polytropon free...@edvax.de writes: On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger cswi...@mac.com 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 run mergemaster, which would update this file? My machine installed in 2001 has a Dec 2010 date for that file: -r--r--r-- 1 root wheel 36037 Dec 1 14:13 /etc/defaults/rc.conf Exactly that was my thought. Maybe a file that is NOT subject to one of the system upgrade procedures would be better? Maybe something in /boot? % ls -l /etc/defaults/rc.conf -r--r--r-- 1 root wheel 34300 Aug 24 2008 /etc/defaults/rc.conf % ls -l /boot/defaults/loader.conf -r--r--r-- 1 root wheel 19426 Aug 24 2008 /boot/defaults/loader.conf No, forget about that, also nonsense, looks to new... How about /var/empty: % ls -ldo /var/empty/ dr-xr-xr-x 2 root wheel schg 512 Jul 18 19:16 /var/empty/ It can be changed, but doesn't look likely. -- Carl Johnson ca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org On my system, it gives a date several months in advance of my install date (Nov 21 2009). -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpFDB7gtEbgU.pgp Description: PGP signature
Re: Date of a FreeBSD installation
On Thu, 13 Jan 2011 21:28:29 +0100 David Demelier demelier.da...@gmail.com 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 ever in the system can helps but which one? markand@Melon ~ $ ls -l /root/.cshrc -rw-r--r-- 2 root wheel 798 19 Jul 04:17 /root/.cshrc It seems that this file has the FreeBSD dist access time so can't refers to neither. Do you have any clue? Cheers, I'd suggest looking at the Btimes of top level directories stat -f %SB %N /* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: awk question: replacing %d%s by %d %s
Date: Thu, 13 Jan 2011 06:28:19 +0100 From: Polytropon free...@edvax.de 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 and more stupid myself for NOT being able to solve this, even after... some nearly infinite time. :-) I have strings of the form either number(s) or number(s)letter. I catch them with if(match(nr, [a-z])) ... where nr is the name of the string. What I need is a simple space between number(s) and letter, so for example 12a would get 12 a, 6d would get 6 d, and 58 would stay unchanged. I've tried with split(), with array manipulation and could produce 10 lines of code that didn't work as intended (it produced 1122aa, 66dd and 5588 according to the examples above). Obviously, sub(nr, [a-z], [a-z]); is nonsense. 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'. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
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 amvandem...@gmail.com To: Redd Vinylene reddvinyl...@gmail.com Cc: questions questi...@freebsd.org, Bernt Hansson be...@bah.homeip.net Subject: Re: Simple command to reset / clear all logs? On Wed, Jan 12, 2011 at 1:50 PM, Redd Vinylene reddvinyl...@gmail.comwrote: 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 reentering multiuser mode, each logging service will create it's new file. FALSE TO FACT, with regard to any/all files that syslogd(8) uses, _unless_ syslogd is invoked with the '-C' option. Quoting from the manpage: For security reasons, syslogd will not append to log files that do not exist (unless -C option is specified); therefore, they must be created manually before running syslogd. Typically if a service is running and you delete the log from it, the service will not like it. You can HUP the service to have it restart logging, but you'd have to do it manually for each log you deleted. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Resume from suspend
On Thu, 13 Jan 2011 22:38:56 + Jonathan Fischer Friberg odysso...@gmail.com 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 button? (or opening the lid) Suspend/resume generally doesn't work - apparently there's lots of work that needs done before it'll be reliable. -- Bruce Cran ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
On Thu, Jan 13, 2011 at 6:28 PM, Robert Bonomi bon...@mail.r-bonomi.comwrote: From: Adam Vande More amvandem...@gmail.com 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, with regard to any/all files that syslogd(8) uses, _unless_ syslogd is invoked with the '-C' option. Quoting from the manpage: For security reasons, syslogd will not append to log files that do not exist (unless -C option is specified); therefore, they must be created manually before running syslogd. Wrong, read what I said again. The appropriate service recreates the log file. Any basic system log would be covered by this. Try it and see. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Attempt to write outside dump device boundaries
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 obtain a kernel dump. Next, I have set up gmirror. Upon reboot, synchronizing the mirror was going very slow. I checked the drives with smartctl; one drive turned out to be faulty. Next, removed the faulty drive from gmirror, and did reboot -d. At this point, I got the error Attempt to write outside dump device boundaries similar to what's described in http://lists.freebsd.org/pipermail/freebsd-stable/2008-December/046982.html Once the system came back up, and I could verify that the faulty drive was no longer part of gmirror, did reboot -d again, which caused the same error. Next, physically disconnected the faulty drive, and had no problem getting a kernel dump. Next, reconnected the faulty drive, but did not insert it into gmirror, and had no problem getting a kernel dump. I obviously need to replace the faulty drive. Beyond that, I'm wondering if someone could explain why is it not possible to get a kernel dump when a drive in gmirror fails. -- Janos Dohanics w...@3dresearch.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
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 bon...@mail.r-bonomi.comwrote: From: Adam Vande More amvandem...@gmail.com 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, with regard to any/all files that syslogd(8) uses, _unless_ syslogd is invoked with the '-C' option. Quoting from the manpage: For security reasons, syslogd will not append to log files that do not exist (unless -C option is specified); therefore, they must be created manually before running syslogd. Wrong, read what I said again. 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 replace it with The appropriate service recreates the log file. _IF_ a service, e.g, apache logs _directly_ to it's own logfiles, this _may_ be true It is explicitly *NOT*TRUE* for log files used by the standard (Berkeley-based) syslogd daemon. The FreeBSD manpage for syslogd, quoted above, confirms that you do -not- know what you're talking about. Any basic system log would be covered by this. Male Bovine Excretement applies. Try it and see. I've got over 25 years experience as a professional system/network admin, all on BSD-derived systems. I can't tell you _how_many_ times I've been called in to fix a 'failure to log' problem that was due to the logfile simply -not- being present, even afer a reboot. Now I'm not infallable, so I cheked the reference documentation _before_ posting, The standard FreeBSD syslogd is -documented- as _NOT_CREATING_ the logfiles it uses, *UNLESS* the '-C' option is specified upon program invocation. Since a logging service cannot tell whether the system is in single-user or multi-user mode, you can verify this syslogd behaviour by simply deleting one of the common log files -- say /var/log/messages -- then killing the running syslogd, and re-starting it. As you say Try it and see. -- Those of you who think you know it all are very annoying to those of us who do. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
On Thu, Jan 13, 2011 at 7:59 PM, Robert Bonomi bon...@mail.r-bonomi.comwrote: 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 replace it with 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. I like the 25 years, should we compare cock sizes too? Quit being a baby and realize the man page for syslogd isn't the only thing involved here. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Need some device help
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 me in the right direction. I am not new to BSD's but then again I am not intimately familiar with a lot of the inner workings and things have change a bunch since my kernel hacking days of NET2 on a vax so this is probably just a parameter somewhere but I cannot seem to find it. Here goes... Question 1? I am trying to get FreeBSD running ZFS to work as both a server and a consumer of iSCSI targets and can't seem to attach to more than 8 devices. In fact it seems to break after a TOTAL of 8 SCSI devices on the client (initiator end) after attaching 8 SCSI devices da0 through da7 target discovery even stops working with this message when running ANY iscontrol commend on the initiator. ISCSISETSES: Device not configured I believe this is on the initiator end and has to do with the total number of attached scsi devices but am not completely sure - I am using the built in iscsi initiator and kernel module NOT open iscsi and istgt on the server. Any ideas? Is this on the server end somehow? Ps. There is absolutely no messages in any log server or client after the 8 device and iSCSI stops working the above message comes from the iscontrol command with the -v option. Question 2? In order to make device names persistent I am using glabel on raw non-partitioned devices to simulate solaris persistent device names. I also understand that I can use GPT disks and that glabel somehow integrates with the GUID? Is this the case or is using GPT a completely independent alternative to using glabel? In any case what is the best/most common practice to achieving the end result (reliably and dependably) in the FreeBSD world? Thanks a lot RB ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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 the mysql server. And when I found the php5-mysql in databases, the Makefile told me how everything fitted together. :-) what do you get from pkg_version -Iv | grep php5 i wouldn't normally do it like this, but in your case i'd be tempted to cd /usr/ports/databases/php5-mysql make install clean cross fingers restart apache WEll, I'm not sure how many eons ago it's been since the last post, but _no_, I did not take a month's vacation ... nor a nap Not even a cup of joe. BUT: Yes, Virginia, there is a Dog... After a partial edit of that wp-config.php from the sample.php, and filling in the name, wordpress, the user wordpress_user, and the password xyz123, a promising WordPress install page showed up. I have saved a copy of the original config page and have some questions that I'll need for when I write up my readable tutorial page. -I don't think many of you know that for heading toward 7 years, I was the lead writer for a Q/A help page for newcomers to FreeBSD. We all can write; it isn't that difficult. But I spent/wasted 15 years of banging away on a typewriter writing stuff and editing stuff before I got seriously lucky and discovered computers. I will need help from the rest of the list and readers to make my HOW-TO INSTALL WORDPRESS strictly first-rate. Given that, I should be the last person to *ever* invest going into four days on this kind of effort. That said, a straight-up thanks for y'all who have helped me with this.- I cut/pasted part of the config page to a yello w notepad. It unfortunately has those unfortunate DOS EOL things with the ^M. [i Figured maybe in pasting the lines, the wasted byte would vanish. Nope. Anyway, can folks tell me what is meant by Keys and Salts] ?? There are 8 places with define()'s. I can dream up 8 strings or phrases, no problem. But without getting into the guts of this blog stuff, can anybody tell me why I need unique [[ or VERY-VERY unique ]] strings? nExt, multiple instances of this blogware. A day ago i thought that one of the wordpress pages would be more than enough, but maybe in a year I'll need one on www and a second in journey. So in the unlikely event should I tag: ``$table_prefix= 'wp_';'' with ``$table_prefix = 'wp0_';'' ? (O think it is better to plan ahead now. Just in case.) -- 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-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
On Thu, 13 Jan 2011 20:11:03 -0600, Adam Vande More amvandem...@gmail.com 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 OR do the logging stuff on their own. I may mantion ftpd logging as an example. Many years ago, I have learned that setting ftp (...stuff...) ftpd -ll in /etc/inetd.conf (the ell ell is important) and adding !ftpd *.* /var/log/ftpd.log to /etc/syslog.conf would cause ftpd to do extended logging. You can imagine how surprised I was that there was no log file at all. I had to manually # touch /var/log/ftpd.log in order to enable the logging mechanism. Simply deleting the file won't cause ftpd to create it on its own, and syslod also doesn't create it, if I remember correctly. It's also worth mentioning that programs that handle logging on their own may be brought into trouble if the logfile suddenly disappears, depending on the access mechanism for that file, either by open/append, write, close or by don't close, keep writing. That being said, I think one can recommend resetting or clearing methods for all logs not depending on deleting and (maybe) re-creating the files. Instead setting them to zero length should not harm syslogd or any other process that logs to files. The methods of echo '' $file or even the more verbose cat /dev/zero $file have been mentioned on list, with $file being a shell wildcard expression or `find ...` for better control about what to work with. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org 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 cp437..iso8859 filename It's also handy for users who have german umlauts in DOS text files and need to recode them to iso8859-1. (It's also a nice tool if the conversion is used in opposite order: This way, UNIX files can be converted to be sent directly to dotmatrix printers that expect DOS text streams.) The recode utility can be found in converters/recode port. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
From owner-freebsd-questi...@freebsd.org Thu Jan 13 21:16:20 2011 Date: Fri, 14 Jan 2011 04:10:25 +0100 From: Polytropon free...@edvax.de To: Gary Kline kl...@thought.org Cc: User Questions freebsd-questions@freebsd.org Subject: Re: Which php?? On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org 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!): Correct accounting is 'one _excess_ byte per line break'. recode cp437..iso8859 filename no need to install the port/package -- tr -d '\r' dosfile unixfile does the trick, with just a base install utility. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
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 owner-freebsd-questi...@freebsd.org To: Gary Kline kl...@thought.org Cc: User Questions freebsd-questions@freebsd.org Sent: Thu Jan 13 21:10:25 2011 Subject: Re: Which php?? On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org 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 cp437..iso8859 filename It's also handy for users who have german umlauts in DOS text files and need to recode them to iso8859-1. (It's also a nice tool if the conversion is used in opposite order: This way, UNIX files can be converted to be sent directly to dotmatrix printers that expect DOS text streams.) The recode utility can be found in converters/recode port. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org font size=1 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in' /div This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. /font ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zoneedit.com
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 confirms account and redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Aloha Jack, Yes, I use Zone Edit. I just had to email them at Support: supp...@zoneedit.com and Paul T. sent me this link to the legacy site as they havent migrated all the DNS. http://www.zoneedit.com/auth/ My issue was that I had the older view era monitor on the rack I use to do this and read emails. Their new web face is wide screen and my monitor chopped off the link to the old site to log on so I emailed them and they answered me in a day. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
Chip Camden sterl...@camdensoftware.com writes: Quoth Carl Johnson on Thursday, 13 January 2011: Polytropon free...@edvax.de writes: On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger cswi...@mac.com 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 run mergemaster, which would update this file? My machine installed in 2001 has a Dec 2010 date for that file: -r--r--r-- 1 root wheel 36037 Dec 1 14:13 /etc/defaults/rc.conf Exactly that was my thought. Maybe a file that is NOT subject to one of the system upgrade procedures would be better? Maybe something in /boot? % ls -l /etc/defaults/rc.conf -r--r--r-- 1 root wheel 34300 Aug 24 2008 /etc/defaults/rc.conf % ls -l /boot/defaults/loader.conf -r--r--r-- 1 root wheel 19426 Aug 24 2008 /boot/defaults/loader.conf No, forget about that, also nonsense, looks to new... How about /var/empty: % ls -ldo /var/empty/ dr-xr-xr-x 2 root wheel schg 512 Jul 18 19:16 /var/empty/ It can be changed, but doesn't look likely. On my system, it gives a date several months in advance of my install date (Nov 21 2009). Oops, you're right. I just checked and it is a few days before I actually installed mine, so that is probably when the ISO was built. -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Date of a FreeBSD installation
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 Dec 31 18:59:59 1969 /dev Jan 9 04:54:21 2011 /etc Jan 9 04:54:21 2011 /lib Jan 9 04:54:21 2011 /libexec Jan 9 04:54:21 2011 /media Jan 9 04:54:21 2011 /mnt Jan 9 04:54:21 2011 /proc Jan 9 04:54:21 2011 /rescue Jan 9 04:54:21 2011 /root Jan 9 04:54:21 2011 /sbin Jan 9 04:54:21 2011 /sys Jan 9 04:48:39 2011 /tmp Jan 9 04:48:45 2011 /usr Jan 9 04:49:39 2011 /var sodserve# stat -f %SB %N / Jan 9 04:39:59 2011 / ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
Polytropon free...@edvax.de writes: On Thu, 13 Jan 2011 20:11:03 -0600, Adam Vande More amvandem...@gmail.com 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 OR do the logging stuff on their own. I think that newsyslog will create the new log files if specified in the /etc/newsyslog.conf file. That might be the confusion about some log files being created automatically but others not. The newsyslog.conf(5) manpage mentions a 'C' flag that can be specified. -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: awk question: replacing %d%s by %d %s
On Thu, 13 Jan 2011 18:22:18 -0600 (CST), Robert Bonomi bon...@mail.r-bonomi.com 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'. Doesn't work on my 7-STABLE system (20080811), awk stops: awk: syntax error at source line 78 source file konvertieren.awk context is sub(nr, [a-z], ); awk: illegal statement at source line 79 source file konvertieren.awk But I'll keep your suggestion in the program source and test it on 8 as soon as my new home system is ready to use. At least, the variant looks much better. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple command to reset / clear all logs?
From owner-freebsd-questi...@freebsd.org Thu Jan 13 23:28:08 2011 From: Carl Johnson ca...@peak.org To: freebsd-questions@freebsd.org Date: Thu, 13 Jan 2011 21:21:40 -0800 Subject: Re: Simple command to reset / clear all logs? Polytropon free...@edvax.de writes: On Thu, 13 Jan 2011 20:11:03 -0600, Adam Vande More amvandem...@gmail.com 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 OR do the logging stuff on their own. I think that newsyslog will create the new log files if specified in the /etc/newsyslog.conf file. That might be the confusion about some log files being created automatically but others not. The newsyslog.conf(5) manpage mentions a 'C' flag that can be specified. BINGO! Furthermore 'newsyslog' is *NOT* part of the Unix 'standard'. You _cannot_ count on it being present on every/all Unix system. Newsyslog is also -not- a 'logging service'. 'syslogd' is the logging service, and syslogd does -not- create any files mentioned in its .conf file. Newsyslog, itself, doesn't even consult the syslog.conf file. It operates entirely independantly o , and _tolally_ignorantly_ of, what syslogd does. _IF_ 'newsyslog' exists, and is configured to run at system start-up, =and= the logfile in question is also configured in the newsyslog.conf file, *AND* that logfile entry has the 'C' {create if missing} flag set, _THEN_AND_ONLY_THEN_ will the file get created when the system transitions into multi-user mode. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: awk question: replacing %d%s by %d %s
On Fri, 2011-01-14 at 07:17 +0100, Polytropon wrote: On Thu, 13 Jan 2011 18:22:18 -0600 (CST), Robert Bonomi bon...@mail.r-bonomi.com 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'. Doesn't work on my 7-STABLE system (20080811), awk stops: awk: syntax error at source line 78 source file konvertieren.awk context is sub(nr, [a-z], ); awk: illegal statement at source line 79 source file konvertieren.awk But I'll keep your suggestion in the program source and test it on 8 as soon as my new home system is ready to use. At least, the variant looks much better. 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 given, $0 is used. So the correct syntax is: sub([a-z], , nr) Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: awk question: replacing %d%s by %d %s
On Fri, 14 Jan 2011 17:53:04 +1030, Wayne Sierke w...@au.dyndns.ws 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 given, $0 is used. So the correct syntax is: sub([a-z], , nr) Works in this version, thanks! Reduction of 7 lines of code. sub(from, to, where); is the correct form. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org