Re: About suidperl in FreeBSD

2011-10-01 Thread Randal L. Schwartz
 Alberto == Alberto Mijares amijar...@gmail.com writes:

Alberto Hi,
Alberto I'm using 8.2-RELEASE

Alberto I need suidperl for openwebmail. I include

If openwebmail requires it, openwebmail is the problem.

suidperl made sense long before sudo came around.  Now that we have
sudo, use it!

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
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: Error during boot-up

2011-10-01 Thread Conrad J. Sabatier
On Wed, 28 Sep 2011 15:44:37 -0400
Jerry je...@seibercom.net wrote:

 From time to time when booting up or rebooting on of my FreeBSD-8.2
 amd 64 machines, the following error message is displayed ad
 infinitum:
 
 nfe0: discard frame w/o leading ethernet header (len 0 pkt len 0)
 
 All I can do is repeatedly hit CTRL+C until the log-on screen
 appears. Then log-in as root and reboot. Sometimes this works and
 sometimes it doesn't. The same phenomena may happen repeatedly 10
 times or more or suddenly just disappear. I have tried using
 ifconfig to bring the network up when this happens but it fails.
 Only a reboot seems to make any difference.
 
 I am at a loss to figure out how to correct this problem or even what
 is causing it. It just suddenly started approximately three months
 ago. I have changed routers so I think I can safely eliminate that as
 the source of the problem. None of my Windows machines have ever
 complained about this so I am wondering if it isn't local to FreeBSD.
 I think the problem first manifested itself after updating to the
 8.2 version since I do not remember it happening prior to that.
 

Have you ruled out a possible hardware problem (defect, interface
going bad)?

-- 
Conrad J. Sabatier
conr...@cox.net
___
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: [0.5 OT] Looking for recommendation on Unix shell account

2011-10-01 Thread RW
On Fri, 30 Sep 2011 22:04:17 -0500
Conrad J. Sabatier wrote:


 I looked briefly one night at SDF.org.
 
 http://sdf.org/?join
 
 For a contribution of, like, $1.00, you get full access, and I suspect
 that they're running FreeBSD (I haven't actually paid to see, but
 among the list of commands that *would* be available as a full
 member, I noticed pkg_info).


It's NetBSD
___
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: Printing using CUPS

2011-10-01 Thread Carmel
On Sat, 1 Oct 2011 06:59:42 +0200
Matthias Apitz articulated:

 El día Friday, September 30, 2011 a las 04:57:14PM -0400, Carmel
 escribió:
 
  I am in the process of setting up a Brother MFC-9560CDW printer on a
  FreeBSD-8.2 amd64 machine. It is a network printer and works fine
  with the Windows machines on the network. Not so much with the
  FreeBSD machine.
  
  CUPS detects the printer:
  
  Description:Brother MFC-9560CDW
  Location:   Local Printer
  Driver: Brother MFC-9560CDW CUPS (color, 2-sided printing)
  Connection: lpd://BRW0022587025CB/BINARY_P1
  Defaults:   job-sheets=none, none media=na_letter_8.5x11in
  sides=one-sided
  
  However, the connection does not work correctly. I changed it
  to:lpd://192.168.1.100/BINARY_P1 and I can print a self text page
  from CUPS. However, I cannot print a test page from within CUPS,
  nor can I print anything from any other application.
  
  I have perused the log files without any success. This limited
  printing has got me totally baffled. I am open to suggestions as to
  what to try next.
 
 While configuring the printer in CUPS, have you used some PPD file?
 If so, check the PPD file which filter it will use.
 
 Set also the LogLevel to 'debug' in cupsd.conf, print a text file and
 check the messages in CUPS' log file.

This is the beginning of the *.ppd file:

*%
*%  Copyright(C) 2010 Brother Industries, Ltd.
*%  Brother MFC-9560CDW CUPS
*% 

*% General Information Keywords 
*FormatVersion: 4.3
*FileVersion: 1.1.3
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: MFC9560W.PPD
*Manufacturer: Brother
*Product: (MFC-9560CDW)
*1284DeviceID: MFG:Brother;MDL:MFC-9560CDW
*cupsVersion: 1.1
*cupsManualCopies: false
*cupsFilter: application/vnd.cups-postscript 0 brlpdwrappermfc9560cdw
*cupsModelNumber: 4
*ModelName: Brother MFC-9560CDW
*ShortNickName: MFC-9560CDW
*NickName: Brother MFC-9560CDW CUPS
*PSVersion: (3010.106) 3

There is no brlpdwrappermfc9560cdw file located on this unit if that
is what you are looking for.

This has really got me stumped. 

-- 
Carmel ✌
carmel...@hotmail.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: Printing using CUPS

2011-10-01 Thread Matthias Apitz
El día Saturday, October 01, 2011 a las 08:08:59AM -0400, Carmel escribió:

 This is the beginning of the *.ppd file:
 
 *%
 *%  Copyright(C) 2010 Brother Industries, Ltd.
 *%  Brother MFC-9560CDW CUPS
 *% 
 
 *% General Information Keywords 
 *FormatVersion: 4.3
 *FileVersion: 1.1.3
 *LanguageVersion: English
 *LanguageEncoding: ISOLatin1
 *PCFileName: MFC9560W.PPD
 *Manufacturer: Brother
 *Product: (MFC-9560CDW)
 *1284DeviceID: MFG:Brother;MDL:MFC-9560CDW
 *cupsVersion: 1.1
 *cupsManualCopies: false
 *cupsFilter: application/vnd.cups-postscript 0 brlpdwrappermfc9560cdw
 *cupsModelNumber: 4
 *ModelName: Brother MFC-9560CDW
 *ShortNickName: MFC-9560CDW
 *NickName: Brother MFC-9560CDW CUPS
 *PSVersion: (3010.106) 3
 
 There is no brlpdwrappermfc9560cdw file located on this unit if that
 is what you are looking for.
 
 This has really got me stumped. 

Delete the printer in CUPS and configure it as Generic Postscript
(without using the PPD file); it should work;

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: Printing using CUPS

2011-10-01 Thread Carmel
On Sat, 1 Oct 2011 14:19:15 +0200
Matthias Apitz articulated:

 El día Saturday, October 01, 2011 a las 08:08:59AM -0400, Carmel
 escribió:
 
  This is the beginning of the *.ppd file:
  
  *%
  *%  Copyright(C) 2010 Brother Industries, Ltd.
  *%  Brother MFC-9560CDW CUPS
  *% 
  
  *% General Information Keywords 
  *FormatVersion: 4.3
  *FileVersion: 1.1.3
  *LanguageVersion: English
  *LanguageEncoding: ISOLatin1
  *PCFileName: MFC9560W.PPD
  *Manufacturer: Brother
  *Product: (MFC-9560CDW)
  *1284DeviceID: MFG:Brother;MDL:MFC-9560CDW
  *cupsVersion: 1.1
  *cupsManualCopies: false
  *cupsFilter: application/vnd.cups-postscript 0
  brlpdwrappermfc9560cdw *cupsModelNumber: 4
  *ModelName: Brother MFC-9560CDW
  *ShortNickName: MFC-9560CDW
  *NickName: Brother MFC-9560CDW CUPS
  *PSVersion: (3010.106) 3
  
  There is no brlpdwrappermfc9560cdw file located on this unit if
  that is what you are looking for.
  
  This has really got me stumped. 
 
 Delete the printer in CUPS and configure it as Generic Postscript
 (without using the PPD file); it should work;

It works, but only as a generic B/W printer. The problem seems to be in
the cupswrappermfc9560cdw file i got when I downloaded the Debian
drivers. That paths are all different and I am not really experienced
enough to figure out the scripting to change it to work correctly.

Maybe I can hire someone to modify the script to point to the correct
locations for the files involved.

-- 
Carmel ✌
carmel...@hotmail.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


top: how to obtain which process take CPU time

2011-10-01 Thread Коньков Евгений
hi, Freebsd-questions.

last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  20:29:07
218 processes: 3 running, 215 sleeping
CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse

  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
92518 cacti 1   80 23820K 12896K nanslp   0:00  0.98% php
92528 cacti 1  -80 22796K 12640K piperd   0:00  0.98% php
92555 cacti 1  -80  4620K  2332K piperd   0:00  0.98% perl5.8.8
92556 root  1  960  3280K  1292K select   0:00  0.98% sudo
92554 cacti 1   80  3460K  1120K wait 0:00  0.98% sh
92542 cacti 1   80  3460K  1128K wait 0:00  0.98% sh
92543 cacti 1  -80 10200K  3664K piperd   0:00  0.78% rrdtool
81166 firebird  1  450 23344K  6188K select   0:08  0.49% fb_inet_serve

top -SIHP
last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  20:35:50
291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse

  PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
   11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
99051 root440  3496K  2020K RUN  0:00  0.10% top
99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
99333 root460  3240K  1008K select   0:00  0.00% ping
99328 root450  3240K   972K select   0:00  0.00% ping
99332 root470  3280K  1292K select   0:00  0.00% sudo
99327 root470  3280K  1292K select   0:00  0.00% sudo

It is unclear which process take CPU time.
is there any other tool, which help me to see processes that take CPU?



-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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


PGP or GPG

2011-10-01 Thread Colin Barnabas
Can anyone think of any compelling reasons why PGP should be used
instead of GPG?
___
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: top: how to obtain which process take CPU time

2011-10-01 Thread Robert Bonomi

 Date: Sat, 1 Oct 2011 20:38:49 +0300
 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= kes-...@yandex.ru
 To: freebsd-questions@freebsd.org
 Subject: top: how to obtain which process take CPU time

[[..  sneck  ..]]

 It is unclear which process take CPU time. is there any other tool, which 
 help me to see processes that take CPU?

One -obvious- anwser is the 'ps' commnd.

Something like 'ps gxua.


You may want to run it more than once, and look at the differences in the
TIME field.
___
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: PGP or GPG

2011-10-01 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sat Oct  1 12:50:11 2011
 Date: Sat, 1 Oct 2011 10:39:58 -0700
 From: Colin Barnabas a...@ucs.com
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Subject: PGP or GPG

 Can anyone think of any compelling reasons why PGP should be used
 instead of GPG?

You don't like the Gnu license?


___
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: top: how to obtain which process take CPU time

2011-10-01 Thread Frank Shute
On Sat, Oct 01, 2011 at 08:38:49PM +0300, ??? ??? wrote:

 hi, Freebsd-questions.
 
 last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
 20:29:07
 218 processes: 3 running, 215 sleeping
 CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
 Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
 Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse
 
   PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
 92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
 92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
 92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
 92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
 92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
 92518 cacti 1   80 23820K 12896K nanslp   0:00  0.98% php
 92528 cacti 1  -80 22796K 12640K piperd   0:00  0.98% php
 92555 cacti 1  -80  4620K  2332K piperd   0:00  0.98% perl5.8.8
 92556 root  1  960  3280K  1292K select   0:00  0.98% sudo
 92554 cacti 1   80  3460K  1120K wait 0:00  0.98% sh
 92542 cacti 1   80  3460K  1128K wait 0:00  0.98% sh
 92543 cacti 1  -80 10200K  3664K piperd   0:00  0.78% rrdtool
 81166 firebird  1  450 23344K  6188K select   0:08  0.49% 
 fb_inet_serve

That looks to me like quite a weak system and has got 3 running
processes and 215 sleeping. I can easily see that 59.6% of your CPU is
being used and your load averages being as they are.

 
 top -SIHP
 last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
 20:35:50
 291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
 CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
 Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
 Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse
 
   PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
 98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
 44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
 99051 root440  3496K  2020K RUN  0:00  0.10% top
 99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
 99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
 99333 root460  3240K  1008K select   0:00  0.00% ping
 99328 root450  3240K   972K select   0:00  0.00% ping
 99332 root470  3280K  1292K select   0:00  0.00% sudo
 99327 root470  3280K  1292K select   0:00  0.00% sudo
 
 It is unclear which process take CPU time.
 is there any other tool, which help me to see processes that take CPU?
 

I don't think another tool would help. You've just got a weak system
running lots of processes. None very big but they all add up to quite
a big chunk of CPU. It looks like it's handling it OK though.



Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgpQUESt9mjgI.pgp
Description: PGP signature


Re[2]: top: how to obtain which process take CPU time

2011-10-01 Thread Коньков Евгений
Здравствуйте, Frank.

Вы писали 1 октября 2011 г., 21:38:56:

FS On Sat, Oct 01, 2011 at 08:38:49PM +0300, ??? ??? wrote:

 hi, Freebsd-questions.
 
 last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
 20:29:07
 218 processes: 3 running, 215 sleeping
 CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
 Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
 Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse
 
   PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
 92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
 92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
 92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
 92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
 92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
 92518 cacti 1   80 23820K 12896K nanslp   0:00  0.98% php
 92528 cacti 1  -80 22796K 12640K piperd   0:00  0.98% php
 92555 cacti 1  -80  4620K  2332K piperd   0:00  0.98% perl5.8.8
 92556 root  1  960  3280K  1292K select   0:00  0.98% sudo
 92554 cacti 1   80  3460K  1120K wait 0:00  0.98% sh
 92542 cacti 1   80  3460K  1128K wait 0:00  0.98% sh
 92543 cacti 1  -80 10200K  3664K piperd   0:00  0.78% rrdtool
 81166 firebird  1  450 23344K  6188K select   0:08  0.49% 
 fb_inet_serve

FS That looks to me like quite a weak system and has got 3 running
FS processes and 215 sleeping. I can easily see that 59.6% of your CPU is
FS being used and your load averages being as they are.
I see that too, but which process take that CPU?

 
 top -SIHP
 last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
 20:35:50
 291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
 CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
 Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
 Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse
 
   PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
 98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
 44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
 99051 root440  3496K  2020K RUN  0:00  0.10% top
 99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
 99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
 99333 root460  3240K  1008K select   0:00  0.00% ping
 99328 root450  3240K   972K select   0:00  0.00% ping
 99332 root470  3280K  1292K select   0:00  0.00% sudo
 99327 root470  3280K  1292K select   0:00  0.00% sudo
 
 It is unclear which process take CPU time.
 is there any other tool, which help me to see processes that take CPU?
 

FS I don't think another tool would help. You've just got a weak system
FS running lots of processes. None very big but they all add up to quite
FS a big chunk of CPU. It looks like it's handling it OK though.
No. it is not weak. it is about 40% load averages, but somethig is
happen and take of 100% CPU (see SNMP graph).
 And I got a problem in FreeBSD I can not obtain which process take
 all CPU ((

 Robert Bonomi bon...@mail.r-bonomi.com
 It is unclear which process take CPU time. is there any other tool, which
 help me to see processes that take CPU?
One -obvious- anwser is the 'ps' commnd.
Something like 'ps gxua.
You mean that 'ps gxua' shows wrong results?



FS Regards,___
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: PGP or GPG

2011-10-01 Thread John Levine
In article 20111001173958.GA30989@hs1.VERBENA you write:
Can anyone think of any compelling reasons why PGP should be used
instead of GPG?

The GNU copyleft can be a deal killer in some applications.

R's,
John
___
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: PGP or GPG

2011-10-01 Thread Colin Barnabas
Quite the opposite. I would prefer to use GPG. I was just
curious if there were any reasons why PGP should be used instead. 
___
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: PGP or GPG

2011-10-01 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sat Oct  1 16:51:43 2011
 Date: Sat, 1 Oct 2011 14:51:52 -0700
 From: Colin Barnabas a...@ucs.com
 To: Robert Bonomi bon...@mail.r-bonomi.com
 Cc: FreeBSD Questions freebsd-questions@freebsd.org
 Subject: Re: PGP or GPG

 Quite the opposite. I would prefer to use GPG. I was just
 curious if there were any reasons why PGP should be used instead. 

I might suggest PGP keeps the context of messages you're replying to.
But that *obviously* isn't a considertion for you.  *wry*grin*


___
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


what are the plain GUI text editors that use the abbrev [as in vi]?

2011-10-01 Thread Gary Kline

several months ago i asked this list if there were any =easier= text
editors than vi[m] that had the abbrev ability.

ab u you
ab r are
ab thz  these
ab plz  please

etc.

now that i have my key-click program working--however tententively--
it is time to work on the rest of my 'speech computer' suite.

IIRC, there was at least one--like kate--that was able to use
abbreviations and help those folk who cannot type fast and/or who
are hunt-andd-pek type typist [like me] who never take their eyes
off the keyboard.

i plan on using gvim ((maybe)) and one GUI type editor.  i'm also
requesting ideas.  as many as you guys are willing to share.

tia,

gary




-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a 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: top: how to obtain which process take CPU time

2011-10-01 Thread Dan Nelson
In the last episode (Oct 01), ??? ??? said:
 hi, Freebsd-questions.
 
 last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
 20:29:07
 218 processes: 3 running, 215 sleeping
 CPU: 59.6% user,  0.0% nice, 40.4% system,  0.0% interrupt,  0.0% idle
 Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free
 Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse
 
   PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
 92520 cacti 1  -80 22796K 12656K piperd   0:00  1.46% php
 92593 cacti 1  -80  4620K  2316K piperd   0:00  1.46% perl5.8.8
 92594 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
 92592 cacti 1   80  3460K  1120K wait 0:00  1.46% sh
 92595 cacti 1  550  5448K  2692K select   0:00  1.37% snmpget
 
 top -SIHP
 last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
 20:35:50
 291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock
 CPU: 52.2% user,  0.0% nice, 27.9% system,  0.0% interrupt, 19.9% idle
 Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free
 Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse
 
   PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND
11 root   171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0
 98502 cacti80 23820K 12932K nanslp   0:00  0.20% php
 44054 root 80  3124K   524K nanslp   0:56  0.10% monitord
 99051 root440  3496K  2020K RUN  0:00  0.10% top
 99331 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
 99326 cacti   -80  4620K  2332K piperd   0:00  0.00% perl5.8.8
 
 It is unclear which process take CPU time.
 is there any other tool, which help me to see processes that take CPU?

Take a look at the last pid values and the time of each top snapshot:

 last pid: 92665;  load averages:  2.40,  2.68,  4.75up 5+02:45:23  
 20:29:07
 last pid: 99336;  load averages:  1.47,  2.05,  3.66up 5+02:52:06  
 20:35:50

So, in 7 minutes your system has launched 6671 processes, and in your first
top snapshot I see sh and snmpget processses.  The reason you don't see any
processes in top consuming CPU is that they are being created and then exit
before top can print them.  If you turn process accounting on (add
accounting_enable=YES to /etc/rc.conf, then run /etc/rc.d.d/accounting
start), you can run the lastcomm command to see a log of every process
that has exited and its CPU usage.  It won't really tell you any more than
you are running Cacti and monitoring a lot of devices :)

-- 
Dan Nelson
dnel...@allantgroup.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: Help with devd.conf

2011-10-01 Thread Martin Alejandro Paredes Sanchez
On Saturday 24 September 2011 07:04:18 Rod Person wrote:
 I'm trying to understand devd.conf to auto mount usb devices. For
 example I have a usb drive that will show up as da1 so as a test I just
 want to write something to syslog when it is plugged in.

 This is what I have tried in devd.conf:

 notify 20{
   match system  DEVFS;
   match subsystem   CDEV;
   match typeCREATE;
   match cdevda[1-9]+;
   action logger you plugged in some usb device;
 };

 notify 20{
   match system  USB;
   match subsytemDEVICE;
   match typeATTACH;
   action logger some type of usb thing attached;
 };


I do not belive that the values of that variables are in upper case

To see what is happening in devd, try this

Create the file /usr/local/etc/devd/printvar.conf with

=
#
# Run devd in debug mode
#  devd -Dd
#

attach 0 {
device-name umass[0-9]+;

action /usr/local/etc/devd/printvar.sh '$bus' '$cdev' '$cisproduct' 
'$cisvendor' '$class' '$device' '$device-name' '$function' '$manufacturer' 
'$notify' '$product' '$serial' '$slot' '$subvendor' '$subdevice' '$subsystem' 
'$system' '$type' '$vendor';
};
=

Also, creat the file Create the file /usr/local/etc/devd/printvar.sh

=
#!/bin/sh
{
  echo $# parametros
  echo $@
  echo bus  = $1
  echo cdev = $2
  echo cisproduct   = $3
  echo cisvendor= $4
  echo class= $5
  echo device   = $6
  echo device-name  = $7
  echo function = $8
  echo manufacturer = $9
  shift 9
  echo notify   = $1
  echo product  = $2
  echo serial   = $3
  echo slot = $4
  echo subvendor= $5
  echo subdevice= $6
  echo subsystem= $7
  echo system   = $8
  echo type = $9
  shift 1
  echo vendor   = $9
}  /tmp/VariablesDevd.txt
=

Check the content of /tmp/VariablesDevd.txt

You can also try this other advise for auto mount

http://networking.ringofsaturn.com/Unix/freebsdautomount.php
___
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