Re[2]: system utilities job
From owner-freebsd-questi...@freebsd.org Sat Nov 13 13:49:32 2010 Date: Sat, 13 Nov 2010 19:13:38 +0200 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= kes-...@yandex.ru To: freebsd-questions@freebsd.org Subject: system utilities job Hi, Freebsd-questions. why I have different results for re0 interface for interrupt statistic? # vmstat -i interrupt total rate irq1: atkbd0 5 0 irq16: ehci0 84414 1 irq17: atapci0329838 5 irq23: ehci1 112524 2 cpu0:timer 119506195 2125 irq266: re0492258114 8753 cpu3:timer 98445240 1750 cpu1:timer 95782407 1703 cpu2:timer 89616119 1593 Total 896134856 15934 #systat -v 3 usersLoad 0,42 0,51 0,51 13 ноя 19:12 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act 860844912 446820 6376 1474852 count All 2076288180 262076832204 pages Proc:Interrupts r p d s w Csw Trp Sys Int Sof Fltcow 21237 total 40 93k 12 1129 12k 40k 15 1 zfodatkbd0 1 ozfod 1 ehci0 16 2,8%Sys 10,9%Intr 0,0%User 0,0%Nice 86,2%Idle%ozfod10 atapci0 17 ||||||||||| daefr 2 ehci1 23 =++ prcfr 2126 cpu0:timer 30 dtbuf3 totfr 12744 re0 266 Namei Name-cache Dir-cache110674 desvn react 2127 cpu3:timer Callshits %hits % 71986 numvn pdwak 2123 cpu1:timer 7 7 100 27160 frevn pdpgs 2104 cpu2:timer intrn Disks ad4172156 wire KB/t 15,84 49524 act tps 10272900 inact MB/s 0,16 272 cache %busy 0 1474580 free RB for the same reason _all_ the interrupt counts are different. You ran two RB different commands. at (slightly) differnt times. Thus, the 'real-time' RB events being reported are _differnet_. A different amount of network RB traffic will result in different numbers of interrupts from the ethernet RB interface. Entirely expected. I have ran both commands in two different shell simulatenously at same time. This OS is 9CURRENT. In 7-2RELEASE interupts was same. -- С уважением, Коньков 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
system utilities job
Hi, Freebsd-questions. why I have different results for re0 interface for interrupt statistic? # vmstat -i interrupt total rate irq1: atkbd0 5 0 irq16: ehci0 84414 1 irq17: atapci0329838 5 irq23: ehci1 112524 2 cpu0:timer 119506195 2125 irq266: re0492258114 8753 cpu3:timer 98445240 1750 cpu1:timer 95782407 1703 cpu2:timer 89616119 1593 Total 896134856 15934 #systat -v 3 usersLoad 0,42 0,51 0,51 13 ноя 19:12 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act 860844912 446820 6376 1474852 count All 2076288180 262076832204 pages Proc:Interrupts r p d s w Csw Trp Sys Int Sof Fltcow 21237 total 40 93k 12 1129 12k 40k 15 1 zfodatkbd0 1 ozfod 1 ehci0 16 2,8%Sys 10,9%Intr 0,0%User 0,0%Nice 86,2%Idle%ozfod10 atapci0 17 ||||||||||| daefr 2 ehci1 23 =++ prcfr 2126 cpu0:timer 30 dtbuf3 totfr 12744 re0 266 Namei Name-cache Dir-cache110674 desvn react 2127 cpu3:timer Callshits %hits % 71986 numvn pdwak 2123 cpu1:timer 7 7 100 27160 frevn pdpgs 2104 cpu2:timer intrn Disks ad4172156 wire KB/t 15,84 49524 act tps 10272900 inact MB/s 0,16 272 cache %busy 0 1474580 free -- С уважением, Коньков 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
Re: system utilities job
In the last episode (Nov 13), ??? ??? said: Hi, Freebsd-questions. why I have different results for re0 interface for interrupt statistic? # vmstat -i interrupt total rate irq266: re0492258114 8753 #systat -v 30 dtbuf3 totfr 12744 re0 266 vmstat shows the average rate since boot. systat shows the average rate over the last sampling period (5 seconds by default). -- 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
blogware or online-feedback utilities?
The soundings i got by this list alone re my novel told me that it has interest. I think more broadly that just among fellow computer nerds. What I want to know is about getting feedback both from list like -questions as well as the others that I belong to. Or are there some canned php scripts I can use? I've run this site for 20 years out of pocket; now I would like to check into something like Paypal donations. Anybody here have a clue about that? If this seems too far OT, please get back to me offlist. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 100% Guaranteed Novel ___ 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
netcat (/usr/bin/nc) buffer size too small - alternate utilities?
I'm communicating with a server that uses UDP packets. The server receives a UDP packet, and responds with a UDP packet by sending one to the initial sender. The request packets are always very small in size, but the response UDP packets can be up to 9216 bytes in size. I am using netcat like so: echo $REQUEST_BODY | /usr/bin/nc -w 1 -u $PLAYERDB_HOST $PLAYERDB_PORT The response always gets truncated to 1024 bytes using netcat. I wrote my own silly version of netcat specifically suited to my needs over UDP, in Java. I then call it like so: echo $REQUEST_BODY | /usr/local/bin/java SendUDP $PLAYERDB_HOST $PLAYERDB_PORT (Source code at the end of this message.) With my Java program, I'm able to get up to 9216 bytes in my UDP response packet; the response won't be truncated to 1024 bytes like in netcat. Now I've read the netcat manpage and it says nothing about any buffer size or ways to increase it. I don't really want to use my Java program because starting up a JVM for each server query is very expensive. Any ideas of any other tools like netcat that will enable me to receive UDP packets up to 9216 bytes in size? Here's the source code for my SendUDP.java code in case you want to see it: import java.io.*; import java.net.*; public class SendUDP { private final static int BUFF_SIZE = 9216; public static void main(String[] args) throws IOException { if (args.length != 2) { throw new IllegalArgumentException (\nUsage:\n + java SendUDP send-host send-port\n + Sends standard input.); } if (!(System.in.available() 0)) { throw new IllegalStateException(expected system input to send); } final InetAddress sendHost = InetAddress.getByName(args[0]); final int sendPort = Integer.parseInt(args[1]); final byte[] buff = new byte[BUFF_SIZE]; int read; int len = 0; while ((read = System.in.read()) = 0) { if (len = buff.length) throw new IllegalStateException(too much input, won't fit); buff[len++] = (byte) read; } DatagramPacket pack = new DatagramPacket(buff, len); pack.setLength(len); final DatagramSocket sock = new DatagramSocket(); sock.connect(sendHost, sendPort); sock.send(pack); pack = new DatagramPacket(buff, buff.length); sock.receive(pack); System.out.write(buff, 0, pack.getLength()); } } ___ 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: netcat (/usr/bin/nc) buffer size too small - alternate utilities?
On Tue, Feb 16, 2010 at 1:42 PM, Nerius Landys nlan...@gmail.com wrote: I'm communicating with a server that uses UDP packets. The server receives a UDP packet, and responds with a UDP packet by sending one to the initial sender. The request packets are always very small in size, but the response UDP packets can be up to 9216 bytes in size. I am using netcat like so: echo $REQUEST_BODY | /usr/bin/nc -w 1 -u $PLAYERDB_HOST $PLAYERDB_PORT The response always gets truncated to 1024 bytes using netcat. I wrote my own silly version of netcat specifically suited to my needs over UDP, in Java. I then call it like so: echo $REQUEST_BODY | /usr/local/bin/java SendUDP $PLAYERDB_HOST $PLAYERDB_PORT (Source code at the end of this message.) With my Java program, I'm able to get up to 9216 bytes in my UDP response packet; the response won't be truncated to 1024 bytes like in netcat. Now I've read the netcat manpage and it says nothing about any buffer size or ways to increase it. I don't really want to use my Java program because starting up a JVM for each server query is very expensive. Any ideas of any other tools like netcat that will enable me to receive UDP packets up to 9216 bytes in size? You can try raising OS's UDP buff size: sysctl kern.ipc.maxsockbuf=8388608 or write an equivalent app in python... -- 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
Re: Freebsd7 mingw32 compilation utilities missing.
Roland Smith a écrit : On Sun, Oct 19, 2008 at 12:18:47PM +0200, Benoit wrote: Hello, i don't know if it's the good section to talk about it... Yesterday, i want to cross-compile an old windows program, so i installed mingw32-bin-msvcrt-r3.12.a3.9 but i can't compile because the compiler and others tools are missing on freeBSD 7, i guess. I guess it because on freeBSD 6, i can see many other packages like mingw32-binutils mingw-gcc etc etc. So my question is : how to have on freeBSD 7, all packages required to build my program ? The devel/mingw32-gcc port/package is the top package/port that you need to install. All other mingw packages/ports are dependancies or optional extras. Thanks you for your help Roland. :) Benoît ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Freebsd7 mingw32 compilation utilities missing.
Hello, i don't know if it's the good section to talk about it... Yesterday, i want to cross-compile an old windows program, so i installed mingw32-bin-msvcrt-r3.12.a3.9 but i can't compile because the compiler and others tools are missing on freeBSD 7, i guess. I guess it because on freeBSD 6, i can see many other packages like mingw32-binutils mingw-gcc etc etc. So my question is : how to have on freeBSD 7, all packages required to build my program ? Thanks for all Benoit ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd7 mingw32 compilation utilities missing.
On Sun, Oct 19, 2008 at 12:18:47PM +0200, Benoit wrote: Hello, i don't know if it's the good section to talk about it... Yesterday, i want to cross-compile an old windows program, so i installed mingw32-bin-msvcrt-r3.12.a3.9 but i can't compile because the compiler and others tools are missing on freeBSD 7, i guess. I guess it because on freeBSD 6, i can see many other packages like mingw32-binutils mingw-gcc etc etc. So my question is : how to have on freeBSD 7, all packages required to build my program ? The devel/mingw32-gcc port/package is the top package/port that you need to install. All other mingw packages/ports are dependancies or optional extras. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpjtudUyfCq5.pgp Description: PGP signature
Re: media conversion utilities in the ports
On Sun, Mar 23, 2008 at 5:19 AM, Roland Smith [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 07:26:20PM +1000, Da Rock wrote: On Sun, 2008-03-23 at 09:41 +0100, Michaël Grünewald wrote: Andrew Falanga a écrit : Hi, A few quick searches on freshports.org didn't turn up much so I'm hoping that the knowledge here will eclipse it. Are there any good, or workable, scriptable WMA to MP3 converter programs in ports? Mplayer pretends it can handle WMA files, however I did not try this feature. See multimedia/mplayer, it installs an `mencoder' program you might be interested in. you need the win32 codecs to make this work though. No you don't. The built-in ffmpeg can handle it: uname -a FreeBSD slackbox.xs4all.nl 7.0-STABLE FreeBSD 7.0-STABLE #0: Fri Feb 29 01:45:32 CET 2008 amd64 Note: win32 codecs don't even work on amd64! mplayer foo.wma MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) 64 Processor 4000+ (Family: 15, Model: 39, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 Playing foo.wma. ASF file format detected. [asfheader] Audio stream found, -aid 1 Clip info: name: x author: == Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16002-176400) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) == AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... Thanks everyone. This is great. Andy -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: media conversion utilities in the ports
Andrew Falanga a écrit : Hi, A few quick searches on freshports.org didn't turn up much so I'm hoping that the knowledge here will eclipse it. Are there any good, or workable, scriptable WMA to MP3 converter programs in ports? Mplayer pretends it can handle WMA files, however I did not try this feature. See multimedia/mplayer, it installs an `mencoder' program you might be interested in. -- Cheers, Michaël ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: media conversion utilities in the ports
On Sun, 2008-03-23 at 09:41 +0100, Michaël Grünewald wrote: Andrew Falanga a écrit : Hi, A few quick searches on freshports.org didn't turn up much so I'm hoping that the knowledge here will eclipse it. Are there any good, or workable, scriptable WMA to MP3 converter programs in ports? Mplayer pretends it can handle WMA files, however I did not try this feature. See multimedia/mplayer, it installs an `mencoder' program you might be interested in. you need the win32 codecs to make this work though. good luck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: media conversion utilities in the ports
On Sun, Mar 23, 2008 at 07:26:20PM +1000, Da Rock wrote: On Sun, 2008-03-23 at 09:41 +0100, Michaël Grünewald wrote: Andrew Falanga a écrit : Hi, A few quick searches on freshports.org didn't turn up much so I'm hoping that the knowledge here will eclipse it. Are there any good, or workable, scriptable WMA to MP3 converter programs in ports? Mplayer pretends it can handle WMA files, however I did not try this feature. See multimedia/mplayer, it installs an `mencoder' program you might be interested in. you need the win32 codecs to make this work though. No you don't. The built-in ffmpeg can handle it: uname -a FreeBSD slackbox.xs4all.nl 7.0-STABLE FreeBSD 7.0-STABLE #0: Fri Feb 29 01:45:32 CET 2008 amd64 Note: win32 codecs don't even work on amd64! mplayer foo.wma MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) 64 Processor 4000+ (Family: 15, Model: 39, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 Playing foo.wma. ASF file format detected. [asfheader] Audio stream found, -aid 1 Clip info: name: x author: == Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16002-176400) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) == AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpa8fFOgLcAQ.pgp Description: PGP signature
Re: media conversion utilities in the ports
=?ISO-8859-1?Q?Micha=EBl_Gr=FCnewald?= writes: A few quick searches on freshports.org didn't turn up much so I'm hoping that the knowledge here will eclipse it. Are there any good, or workable, scriptable WMA to MP3 converter programs in ports? Mplayer pretends it can handle WMA files, however I did not try this feature. See multimedia/mplayer, it installs an `mencoder' program you might be interested in. In my experience, mplayer has been able to handle WMA files ... _except_ for those that require Windows Media Player 10 due to DRM. (If someone knows how to get mplayer over that obstacle, please share.) Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: media conversion utilities in the ports
Robert Huff wrote: =?ISO-8859-1?Q?Micha=EBl_Gr=FCnewald?= writes: A few quick searches on freshports.org didn't turn up much so I'm hoping that the knowledge here will eclipse it. Are there any good, or workable, scriptable WMA to MP3 converter programs in ports? Mplayer pretends it can handle WMA files, however I did not try this feature. See multimedia/mplayer, it installs an `mencoder' program you might be interested in. In my experience, mplayer has been able to handle WMA files ... _except_ for those that require Windows Media Player 10 due to DRM. (If someone knows how to get mplayer over that obstacle, please share.) Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Try PACPL in ports. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
media conversion utilities in the ports
Hi, A few quick searches on freshports.org didn't turn up much so I'm hoping that the knowledge here will eclipse it. Are there any good, or workable, scriptable WMA to MP3 converter programs in ports? Thanks, Andy -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
KDE tts utilities?
Guys, I forget how I did it, but I did have ksayit and ktts* installed on my backup DNS server (still under construction). Can anybody tell me with directory in /usr/ports I need to install to get these programs on my newest box? Gnome does work on my new Dell (gratis Garrett Cooper:). There are many, many more of these (Gnome) apps as well as a few KDE apps too.To make things more clear: the Dell is//will be repplacing tao.thought.org/ [ right now i have it named tao2.thought.org. also, after 17 years of using CTWM, I'm switching to Gnome. ] gary PS: Here's what I have in my var/db packages directory, so I can't figure out why the text-to-speech stuff won't work. :: drwxr-xr-x 2 root wheel 512 May 13 00:33 kdebase-3.5.6_2 drwxr-xr-x 2 root wheel 512 May 13 00:33 kdeutils-3.5.6 drwxr-xr-x 2 root wheel 512 May 12 23:15 kde-xdg-env-1.0_2,1 drwxr-xr-x 2 root wheel 512 May 12 23:15 kdebase-kompmgr-3.5.6 drwxr-xr-x 2 root wheel 512 May 12 23:12 kdelibs-3.5.6_2 -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE tts utilities?
On Saturday 12 May 2007, Gary Kline wrote: Guys, I forget how I did it, but I did have ksayit and ktts* installed on my backup DNS server (still under construction). Can anybody tell me with directory in /usr/ports I need to install to get these programs on my newest box? Try pkg_info -W ksayit on the box w/ ksayit installed. Gnome does work on my new Dell (gratis Garrett Cooper:). There are many, many more of these (Gnome) apps as well as a few KDE apps too.To make things more clear: the Dell is//will be repplacing tao.thought.org/ [ right now i have it named tao2.thought.org. also, after 17 years of using CTWM, I'm switching to Gnome. ] gary PS: Here's what I have in my var/db packages directory, so I can't figure out why the text-to-speech stuff won't work. :: drwxr-xr-x 2 root wheel 512 May 13 00:33 kdebase-3.5.6_2 drwxr-xr-x 2 root wheel 512 May 13 00:33 kdeutils-3.5.6 drwxr-xr-x 2 root wheel 512 May 12 23:15 kde-xdg-env-1.0_2,1 drwxr-xr-x 2 root wheel 512 May 12 23:15 kdebase-kompmgr-3.5.6 drwxr-xr-x 2 root wheel 512 May 12 23:12 kdelibs-3.5.6_2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE tts utilities?
On Mon, May 14, 2007 at 04:28:47AM +0200, Pieter de Goeje wrote: On Saturday 12 May 2007, Gary Kline wrote: Guys, I forget how I did it, but I did have ksayit and ktts* installed on my backup DNS server (still under construction). Can anybody tell me with directory in /usr/ports I need to install to get these programs on my newest box? Try pkg_info -W ksayit on the box w/ ksayit installed. i think it's the accessibility/kdeaccessibility/ ports; should know more shortly. eanwhile, the accessibility/gnome-speech one is already installed, but I don't see it. I thinkit's an imaginary point:-) -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautification and/or printing utilities that are not part of an editor
On Thu, 2007-04-19 at 15:10 -0600, Andrew Falanga wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Assuming you can print with lpr(1): vim +syntax enable +number +hardcopy file.cc I'd put syntax enable in your ~/.vimrc , and the other attrs can be shortened to: vim +nu +ha file.cc signature.asc Description: This is a digitally signed message part
Re: Code beautification and/or printing utilities that are not part of an editor
On Fri, 2007-04-20 at 10:23 +0100, Tom Evans wrote: On Thu, 2007-04-19 at 15:10 -0600, Andrew Falanga wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Assuming you can print with lpr(1): vim +syntax enable +number +hardcopy file.cc I'd put syntax enable in your ~/.vimrc , and the other attrs can be shortened to: vim +nu +ha file.cc My bad, I hadn't actually tried that! The correct version should be: vim +syntax enable +set printoptions=number:y +hardcopy file.cc vim +syntax enable +set popt=number:y +ha file.cc signature.asc Description: This is a digitally signed message part
Code beautification and/or printing utilities that are not part of an editor
Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautification and/or printing utilities that are not part of an editor
On Thu, Apr 19, 2007 at 03:10:47PM -0600, Andrew Falanga wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? http://www.codento.com/people/mtr/genscript/ -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpLIsp8XGWV5.pgp Description: PGP signature
Re: Code beautification and/or printing utilities that are not part of an editor
Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. I seem to remember using enscript to do this at one point... not sure about the color coding, but the rest it will do I think... even cruch 2/4 pages onto one sheet which is nice sometimes. http://www.codento.com/people/mtr/genscript/ -philip ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautification and/or printing utilities that are not part of an editor
On 4/19/07, Andrew Falanga [EMAIL PROTECTED] wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You might be able to find what you are looking for here: http://www.freebsd.org/cgi/ports.cgi?query=printingstype=allsektion=all I see a few potentially interesting ports, although I have no personal experience with them. http://cvsweb.freebsd.org/ports/print/mp-a4 http://cvsweb.freebsd.org/ports/print/mp-letter Good Luck, Gable ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [freebsd-questions] Code beautification and/or printing utilities that are not part of an editor
Andrew Falanga wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. vgrind(1) does this, and you already have it installed (it's in /usr/bin). Best Regards, Howie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautification and/or printing utilities that are not part of an editor
On Apr 19, 2007, at 4:10 PM, Andrew Falanga wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? a2ps was once a nice and simple ascii to PS converter then it bloated into a source code pretty-printer. Has been at least 10 years since I used it. GNU indent is a very useful code reformatter. -- David Kelly N4HHE, [EMAIL PROTECTED] Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
utilities for intel SRCZCR RAID adapter
Does anyone know if any of the RAID utilities in the ports works with the Intel SRCZCR RAID adapter? I know intel usually uses either Adaptec or LSI chips usually, but I don't know what chip is used on this adapter or if the utilities will even work on this adapter. Thanks, -Derek [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: utilities for intel SRCZCR RAID adapter
On Tue, 15 Aug 2006, Derek Ragona wrote: Does anyone know if any of the RAID utilities in the ports works with the Intel SRCZCR RAID adapter? I know intel usually uses either Adaptec or LSI chips usually, but I don't know what chip is used on this adapter or if the utilities will even work on this adapter. These are the controller I have in two of my servers ... Its used to use the storcon utility, but the storcon utility hasn't been ported up to 6.x yet, at least I haven't been able to get it to work yet ... IF anyone has any experiences with storcon+6.x, please post :) Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: utilities for intel SRCZCR RAID adapter
Does storcon work in 5.X? One server I have this RAID adapter in is still in 5.X. I don't see it in the ports. -Derek At 04:26 PM 8/15/2006, Marc G. Fournier wrote: On Tue, 15 Aug 2006, Derek Ragona wrote: Does anyone know if any of the RAID utilities in the ports works with the Intel SRCZCR RAID adapter? I know intel usually uses either Adaptec or LSI chips usually, but I don't know what chip is used on this adapter or if the utilities will even work on this adapter. These are the controller I have in two of my servers ... Its used to use the storcon utility, but the storcon utility hasn't been ported up to 6.x yet, at least I haven't been able to get it to work yet ... IF anyone has any experiences with storcon+6.x, please post :) Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: recoll and other desktop indexing/search utilities
On 2/6/06, lyubich_freebsd [EMAIL PROTECTED] wrote: Hello, I am looking for a desktop indexing/searching utility. At the moment, I am trying recoll. Are there also other tools with the same functions? (e.g., in kde ore gnome suits). Beagle, but it's not in the ports system yet. and Splunk, but thats for sysadmin/log file stuff. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
recoll and other desktop indexing/search utilities
Hello, I am looking for a desktop indexing/searching utility. At the moment, I am trying recoll. Are there also other tools with the same functions? (e.g., in kde ore gnome suits). Regards, Lyubich,M. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Need Help compiling Utilities for Niagara 2261 Nic
I need some help compiling the utility for the Niagara 2261 nic. I have the sources, make file and card specs. I just don't have the knowledge. Does anyone have any experience with this card? I'm trying to get this working on a FreeBSD 6.0 install. FreeBSD 6.0 sees the 2 interfaces on the card as em0 and em1. The card is in a failed open state and passes traffic (what they call mode 0). But ifconfig show that the interfaces have no carrier. I would like to run tcpdump on either the em0 or em1. Basically I want to sit a box between my router and switch and make it an in-line sniffer. Ray ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: any backup utilities for ACLs?
On Mon, 1 Aug 2005, Lowell Gilbert wrote: Dru [EMAIL PROTECTED] writes: However, I can't seem to find a backup program that will actually restore the ACLs. The day sent that message I tried looking too.. Interestingly enough tar describes that it can restore ACL.. yet it seems it fails to back them up. Perhaps we should do a send-pr on it. Did you try dump(8)? That is, after all, the canonical backup program. I thought it got ACL support a couple of years ago... Even if dump works it would be nice to have a way to backup individual files... specially for copying to other machines where one may want to have the same permissions (as long as the user IDs are the same and the same user names of course). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: any backup utilities for ACLs?
On Sat, 30 Jul 2005 13:17:36 -0400 (EDT), Dru [EMAIL PROTECTED] said: D I've enabled ACL support on a 5.4-RELEASE system and have no problems D creating and modifying ACLs. However, I can't seem to find a backup D program that will actually restore the ACLs. I've tried bsdtar, pax, D and star. Has anyone had any success in backing up and restoring ACLs? According to http://www.onlamp.com/pub/a/bsd/2003/08/14/freebsd_acls.html the archivers/star port supports ACLs; did you use the port or compile from separate source? Apart from that, all I can think of is to save the ACLs using getfacl and then restore them later using something like the script below. -- Karl Vogel I don't speak for the USAF or my company The ultimate result of shielding men from the effects of folly is to fill the world with fools. --Herbert Spencer --- #!/usr/bin/perl # read getfacl output, write setfacl commands. # # Sample input: ##file:f1 ##owner:1001 ##group:1001 #user::rwx #group::r-- #group:mail:rw- #mask::rw- #other::r-- # ##file:f2 ##owner:1001 ##group:1001 #user::rw- #group::r-- #other::r-- # # Sample output: #setfacl -m user::rwx,group::r--,group:mail:rw-,mask::rw-,other::r-- f1 #setfacl -m user::rw-,group::r--,other::r--, f2 $cmd = 'setfacl -m'; $opt = ''; while () { chomp; $file = $1 if /^#file:(.*)/; next if /^#owner:/; next if /^#group:/; if (length($_)) { $opt .= $_, unless /^#/; } else { chop ($opt); print $cmd $opt $file\n; $opt = ''; } } print $cmd $opt $file\n if length($opt); exit(0); ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: any backup utilities for ACLs?
Dru [EMAIL PROTECTED] writes: I've enabled ACL support on a 5.4-RELEASE system and have no problems creating and modifying ACLs. However, I can't seem to find a backup program that will actually restore the ACLs. I've tried bsdtar, pax, and star. Has anyone had any success in backing up and restoring ACLs? If so, what was the magic incantation? Did you try dump(8)? That is, after all, the canonical backup program. I thought it got ACL support a couple of years ago... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
any backup utilities for ACLs?
I've enabled ACL support on a 5.4-RELEASE system and have no problems creating and modifying ACLs. However, I can't seem to find a backup program that will actually restore the ACLs. I've tried bsdtar, pax, and star. Has anyone had any success in backing up and restoring ACLs? If so, what was the magic incantation? Dru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mylex AcceleRAID 352 utilities
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 No, gam - is binary file... Dan Nelson wrote: | In the last episode (Jan 21), Krok said: | |Hello. | |Does anybody know, how can I administrate Mylex AcceleRAID 352 from |FreeBSD 5.2.1 ? | |I've tried software from lsilogic - linux-gam (sam), but it's fails with |following error : | |# ./gam |sh: wine: command not found | |even with wine installed | | | Chances are gam is a shell script that launches wine. Take a look at | it and hardcode the path. | - -- With best regards, Krok -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB8iFOsXuomovtlAARAq8GAJ9WHnFDvzByVsAXS+dqHx5nbiwzfACeLHlr 2ud+l7tz2B6SrzHOeMO5X14= =8XZj -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Mylex AcceleRAID 352 utilities
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello. Does anybody know, how can I administrate Mylex AcceleRAID 352 from FreeBSD 5.2.1 ? I've tried software from lsilogic - linux-gam (sam), but it's fails with following error : # ./gam sh: wine: command not found even with wine installed The problem is that RAID-5 container is critical and I don't want to reboot server... - -- With best regards, Krok -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB8Mp/sXuomovtlAARAsadAJ9VAhXlcrQYnnh0MuhaSaL4m4boswCeN3vP HhJTZ8GRxuhHJQAGB7xnc+s= =9as1 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mylex AcceleRAID 352 utilities
In the last episode (Jan 21), Krok said: Hello. Does anybody know, how can I administrate Mylex AcceleRAID 352 from FreeBSD 5.2.1 ? I've tried software from lsilogic - linux-gam (sam), but it's fails with following error : # ./gam sh: wine: command not found even with wine installed Chances are gam is a shell script that launches wine. Take a look at it and hardcode the path. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: promise TX2 ata raid utilities?
Sean Ellis schrieb: Hello, I'm taking care of a computer now with a promise tx2 controller card and two 40G hard drives as a raid1 array. The machine is running 4.10-PRERELEASE freebsd. I'm wondering if anyone knows if there are utilities to monitor the 'health' of such a raid array? I'm also wondering if there are any You can use 'atacontrol status ar0'. Seem man atacontrol for more. -Mano recommendations for a relevant resource about managing the array. Something along the lines of the 'what to do in case of disaster' stuff that accompanies the vinum docs, thanks, Sean ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
promise TX2 ata raid utilities?
Hello, I'm taking care of a computer now with a promise tx2 controller card and two 40G hard drives as a raid1 array. The machine is running 4.10-PRERELEASE freebsd. I'm wondering if anyone knows if there are utilities to monitor the 'health' of such a raid array? I'm also wondering if there are any recommendations for a relevant resource about managing the array. Something along the lines of the 'what to do in case of disaster' stuff that accompanies the vinum docs, thanks, Sean ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
utilities
Hi everyone, Are there any utilities available which checks de ports dependencies and if not good, will restore these dependencies? Met vriendelijke groeten Jack Raats ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: utilities
yes try portupgrade tools it`s magic :) On Sun, 21 Mar 2004 20:20:18 +0100 Jack Raats [EMAIL PROTECTED] wrote: Hi everyone, Are there any utilities available which checks de ports dependencies and if not good, will restore these dependencies? Met vriendelijke groeten Jack Raats ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: utilities
I use portupgrade for upgrading the ports... But what do you mean with tools? Jack C.Stefan wrote: yes try portupgrade tools it`s magic :) On Sun, 21 Mar 2004 20:20:18 +0100 Jack Raats [EMAIL PROTECTED] wrote: Hi everyone, Are there any utilities available which checks de ports dependencies and if not good, will restore these dependencies? Met vriendelijke groeten Jack Raats ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: utilities
I mean after a cvsup try running : portsdb -uU : that will create an index of your installed outdated ports if you will have stale and corrupt dependencies you have the chance to fix them interactively then try portupgrade -aRr this will check your dependencies back forth and gracefully try to resolve them tools are : portcvsweb ports_glob portsdb portversion portinstall portsclean maybe there are some more out there but portupgrade I find satisfactory for my needs On Sun, 21 Mar 2004 20:44:24 +0100 Jack Raats [EMAIL PROTECTED] wrote: I use portupgrade for upgrading the ports... But what do you mean with tools? Jack C.Stefan wrote: yes try portupgrade tools it`s magic :) On Sun, 21 Mar 2004 20:20:18 +0100 Jack Raats [EMAIL PROTECTED] wrote: Hi everyone, Are there any utilities available which checks de ports dependencies and if not good, will restore these dependencies? Met vriendelijke groeten Jack Raats ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]