Re: tail -f on webpage

2002-12-08 Thread Dan Nelson
; > passthru ("tail -f $error_log"); > ?> The following 3-line CGI works fine: #! /bin/sh printf "Content-type: text/plain\r\n\r\n" tail -f /var/log/messages If you want a PHP solution, try a php mailinglist. -- Dan Nelson [EMAIL PROTECTED] To Unsubs

Re: tail -f on webpage

2002-12-10 Thread Dan Nelson
In the last episode (Dec 10), George Georgalis said: > On Sun, Dec 08, 2002 at 11:45:22PM -0600, Dan Nelson wrote: > > #! /bin/sh > > printf "Content-type: text/plain\r\n\r\n" > > tail -f /var/log/messages > > > > Unfortunatly if you try that you

Re: network backup

2002-12-13 Thread Dan Nelson
ronizing two directories, and needs to be able to read the files on both sides for the sync algorithm to work. If you just want to back directories up, use tar, and add the 'z' flag to compress the tarball. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to

Re: Whats the maximum filesize on fat32 partitions (FreeBSD 4.7) ?

2003-01-06 Thread Dan Nelson
ems have a 4gb limit. ufs has some huge number that you'll never hit. www.microsoft.com/WINDOWSXP/home/using/productdoc/en/choosing_between_NTFS_FAT_and_FAT32.asp -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freeb

Re: [tobi@caida.org: Re: [MRTG-DEV] CDEF's with LT and IF in .42]

1999-06-30 Thread Dan Nelson
o fpsetmask() calls; one to mask the condition, and one to restore the previous mask. If you want to completely ignore floating point errors, call fpsetmask(0) at the top of main(). I scanned the mailinglists and the thread that covers this issue most completely is http://www.freebsd.org/

Re: Overcommit and calloc()

1999-07-19 Thread Dan Nelson
onymous memory MAP_SHARED, fork a child to bzero it. If the child dies, unmmap and return NULL. If the child succeeds, use the memory. This memory won't be freeable with malloc(), though. -Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: file(1) Magdir candidate: wintendo

1999-07-26 Thread Dan Nelson
like Quake? How about just calling it "games" ? -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: bftp(1)

1999-08-17 Thread Dan Nelson
per re-implementing it is at http://renoir.vill.edu/~yhang . It looks like ports/ftp/ncftp3 has all the features of bftp (scheduled background transfers, auto-resume, multiple file xfers) except it doens't email the user then the transfer is done. -- Dan Nelson [EMAIL PROTECTED]

Re: font edit tools

1999-08-22 Thread Dan Nelson
were a lot of tools floating around. I like one called Font Mania!; the author doesn't seem to have a web presence, but an URL is http://jconroy.dragonfire.net/zzt/utilities/Fm.zip -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with &quo

Re: X mailers (was Re: ANNOUNCE: Linux ABI/SDK standards for OpenGL/Mesa)

1999-09-09 Thread Dan Nelson
ovided pop account. (Costs less that way, with my current > ISP.) If your ISP runs sendmail (possibly other MTAs), you can use the [EMAIL PROTECTED] syntax. All mail is sent to the "user" mailbox, but filters like procmail see the "detail" portion too, and can filter on it.

Re: Bug in dd seeking beyond 2G

1999-09-15 Thread Dan Nelson
ision 1.17 date: 1999/06/19 19:49:32; author: green; state: Exp; lines: +25 -21 Miscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t, off_t, int, u_int64_t, etc.). dd(1) should now work properly with REALLY big amounts of data. Should be a -stable candidate by now (3 months o

Re: Questions regarding memory usage

1999-10-08 Thread Dan Nelson
t; > There is no trivial way to determine this, no. > The getrusage() function returns a structure with the follwing field in it: ru_nswapthe number of times a process was swapped out of main memory. Would this do the trick? It only works for yourself or your child processes th

Re: Search a symbol in the source tree

1999-10-12 Thread Dan Nelson
it has a "recursive glob": grep draw_mouse **/*.c You could also use find | xargs: find . -name "*.c" | xargs grep draw_mouse Or you could use gtags/global: gtags global -gx "draw_mouse" If you're really looking for the source file that defines a symbo

Re: Size of arp database.

1999-10-19 Thread Dan Nelson
In the last episode (Oct 19), Wiktor said: > Is there any way to enlarge the arp database. I've got a feeling that > it is limited to only 10 enteries... For me it's a bit to less. $ arp -a | wc -l 256 Maybe you only have 10 machines on your network? -- Dan Nelso

Re: soundcard.h

1999-10-20 Thread Dan Nelson
over the other, why does one simply not > include the other. In other words, why two _exactly_ the same files? Actually on my system it's a symlink. My guess is that some committer was sick of patching every Linux app from to . -- Dan Nelson [EMAIL PROTECTED] To

Re: Barcode reader on a scsi tape changer

1999-10-21 Thread Dan Nelson
e 3of9 font and it scanned them in just fine. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Is there anything like #ifdef BSD

1999-10-27 Thread Dan Nelson
> > I am looking for a > #if defined (BSD) > or #ifdef BSD Do you know that the code you will be putting inside this #ifdef is BSD-only code (and won't be used by OSF/1, HP-UX, Solaris, etc), or should you rather be using autoconf and checking for specific functions (setproctitle()

Re: Limitations in FreeBSD

1999-10-29 Thread Dan Nelson
ough, so you'll have to write your own low-level memory copying operations if you want to access other segments. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Human readable df

1999-11-30 Thread Dan Nelson
140922 614687%/io3 /dev/da1s1e 4399732111 836679%/io4 procfs 000 100%/proc ( / is 7.8 gig, /io3 is 51 gig ) -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PR

Sendmail (was Re: tmpfs .. ?)

1999-12-05 Thread Dan Nelson
. This avoids opening and reading each queue file when preparing to run the queue". I don't know if any of them really help, but it's worth looking at. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: large file aware utilities

1999-12-11 Thread Dan Nelson
file in question, then print the last 10 lines from that. This bug has been reported as http://www.freebsd.org/cgi/query-pr.cgi?pr=14786 -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: umount -f causes page fault in kernel?

1999-12-14 Thread Dan Nelson
ed filesystems with no problems. Gergely: could you rebuild your kernel with debugging, create a kernel crashdump, and post a stack traceback of the panic? Instructions are at http://www.freebsd.org/handbook/kerneldebug.html . -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Upper <->Lower in shell script

1999-12-17 Thread Dan Nelson
local/bin/zsh var=MixedCase lvar=${var:l} echo $lvar -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Practical limit for number of TCP connections?

1999-12-18 Thread Dan Nelson
ons (with a lot more traffic than you're likely to see). I forget whether it was running 2.2.7 or 3.0, but it was definitely FreeBSD, running a standard ircd. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: gcc command line ordering question

1999-12-29 Thread Dan Nelson
oo late. Moving the libs to the end of the commandline lets them resolve the "ldap_init" symbol. This is why you always see libraries at the *end* of commandlines :) -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: [OFFTOPIC] alt. C compiler

2000-01-05 Thread Dan Nelson
there is nothing above -O3 (If you see someone using anything higher, you can be sure they're using pgcc). The -Os flag automatically sets -O2. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Should -mieee-fp equal fpsetmask(0) to avoid SIGFPE on FreeBSD?

2000-01-05 Thread Dan Nelson
fer to trap by default. The very few programs that require IEEE conformance can call fpsetmask() themselves. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Reading kbd scancodes from userland

2000-01-05 Thread Dan Nelson
to write a "keyboardd" that resets the mode; your program would (say) flock /dev/console and go into raw mode. keyboardd would check every 10 seconds or so to see if the keyboard is in raw mode. If it is, it does a flock on /dev/console (whick will block until your program

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread Dan Nelson
represent the specified calendar time, but with their values forced to their normal ranges. Nov 31 cannot be represented, but it gets normalized to Dec 1. The only non-representable dates are those that cannot be stored in a time_t. -- Dan Nelson [EMAIL PROTECTED] To Unsubs

Re: high load, nothing happening? (LONG)

2000-01-18 Thread Dan Nelson
CE SIZERES STATETIME WCPUCPU COMMAND > 25040 root 28 0 844K 1120K RUN 0:00 1.89% 0.34% top > 24823 freddy2 0 4180K 2964K select 0:00 0.23% 0.23% pine4.21 > 24919 byman 3 0 796K 1040K ttyin0:00 0.04% 0.04% tcsh > 24537 inch_hom 2 0

Re: high load, nothing happening? (LONG)

2000-01-18 Thread Dan Nelson
In the last episode (Jan 18), spork said: > > On Tue, 18 Jan 2000, Dan Nelson wrote: > > In the last episode (Jan 18), spork said: > > > I'm not sure what the problem is. You're 97% idle. Maybe the hosted > > web sites on this machine are slightly more

Re: high load, nothing happening? (LONG)

2000-01-18 Thread Dan Nelson
In the last episode (Jan 18), spork said: > On Tue, 18 Jan 2000, Dan Nelson wrote: > > CTRL-ALT-ESC, and at the prompt type in 'panic'. You'll need DDB > > compiled into the kernel, and crashdumps enabled. > > By now, you should know my next question...

Re: high load, nothing happening? (LONG)

2000-01-19 Thread Dan Nelson
In the last episode (Jan 19), Charles Sprickman said: > On Tue, 18 Jan 2000, Dan Nelson wrote: > > The handbook instructions are for kernel-generated panics; for a > > manual panic like yours, the stack is unimportant. The easiest way > > to see which processes are

Re: kern/13644

2000-01-23 Thread Dan Nelson
zz-looping on a timer variable, there's not much you can do about it under Unix. And I'll not even mention what happens to this when you start swapping. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: perfmon

2000-01-24 Thread Dan Nelson
obably uses a proprietary protocol anyway. You might want to take a look at xosview, xperfmon3, xsysinfo, or xsysstats in the ports tree. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: HP Type C1559 problems

2000-01-31 Thread Dan Nelson
"man mtio" for the C tape interface, and "man ch" for the C autoloader interface. > cat /dev/rsa0 -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: NMBCLUSTERS

2000-02-02 Thread Dan Nelson
irror site, and ran out of mbufs a couple times because I had a lot of backed-up FTP connections over a T1 link. Easiest way to determine what you need is to just let the system run for a while, and then rebuild the kernel with your NMBCLUSTERS set at your peak value + 50% . -- Dan Nelso

Re: NMBCLUSTERS

2000-02-02 Thread Dan Nelson
pacity after only 9 minutes :) Although if you are already at your peak load for the day, you might be okay. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Regarding DOS violations

2000-02-09 Thread Dan Nelson
ew connections that take a lot of CPU each. I'd say that most database-backended servers have a similar problem, and do have per-IP query limits or some other form of restrictions. The best (worst?) example of this I can think of is the all-too-common IIS "HTTP/1.0 Server Too Busy"

Re: Filesystem size limit?

2000-02-16 Thread Dan Nelson
l to large volumes. We've got 2TB worth of storage on a pair of Sparcs, and we probably could have created two 1TB filesystems. We went with 200gb and 100gb volumes instead, for ease of backup. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] wi

Re: Block out PING.

2000-03-08 Thread Dan Nelson
0 pps -> 20 pps -. ) 20 pps<- 20 pps <- 20 pps <-' -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: 3.4 - large file - seek problems

2000-03-23 Thread Dan Nelson
As for less, you can contact the author and see if he can fix it; it's not a stock FreeBSD program. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: shell issue

2000-03-24 Thread Dan Nelson
a datasize limit in /etc/login.conf . -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: reducing the number of NFSv3 commit ops

2000-04-04 Thread Dan Nelson
aris box and creating a large file, I see commits too (a 64K commit every 128K or so on my system). Mounting another FreeBSD box, I see absolutely no commits at all. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hacker

Re: floating point exceptions

2000-04-26 Thread Dan Nelson
erical analysis programs and a divide by zero is a coding error. I'd rather have my program die on an unexpected divide by zero than continue with invalid data. Why should we treat (1.0/0.0) any differently from (1/0)? -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Double buffered cp(1)

2000-04-26 Thread Dan Nelson
;s faster with tagged queueing, update PR kern/10398. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: floating point exceptions

2000-04-26 Thread Dan Nelson
ping on underflow :) -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: PROBLEM FOUND (sort of): Re: lpr: order of print requests

2000-05-02 Thread Dan Nelson
pe)? Aha. Yes, it _does_ do FIFO, but if you look at the source, the queue sorting routine simply sorts on stat(mtime) of the queue file, so jobs submitted in the same second will sort randomly. A quick fix would be to sleep for 1 second between "lpr" calls. -- Dan Nelson

Re: PROBLEM FOUND (sort of): Re: lpr: order of print requests

2000-05-03 Thread Dan Nelson
In the last episode (May 03), Chris Dillon said: > On Tue, 2 May 2000, Dan Nelson wrote: > > Aha. Yes, it _does_ do FIFO, but if you look at the source, the > > queue sorting routine simply sorts on stat(mtime) of the queue > > file, so jobs submitted in the same second w

Re: PR's and patches

2000-05-09 Thread Dan Nelson
solution would probably be to cvsup the gnats collection (130 MB though). A quick hack to get a single patch downloaded cleanly would be to load lynx up on the page, and P)rint it to a local file. Then patch -l should work. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: bpf question

2000-05-19 Thread Dan Nelson
quot;tcpdump -n", I drop from 1-10% of the packets. If I use "tcpdump -n -w logfile.txt", I drop no packets. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: truss -f, updated patch

2000-05-21 Thread Dan Nelson
modify a structure, so you need to print it before and after. I had patterened my code after a free version of truss for Digital Unix. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: iBCS status?

2000-06-05 Thread Dan Nelson
ion to exist as well, so I ended up making svr4.ko depend on ibcs2.ko. I'm currently stuck trying to get getdents() and fstat() work. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: iBCS status?

2000-06-06 Thread Dan Nelson
ll (int fd, long offset, int whence). UW7 apparently has two additional syscalls: lseek32 and lseek64, but I don't know what numbers they are; I don't have UW7. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: SVR4 Emulation [was Re: iBCS status?]

2000-06-07 Thread Dan Nelson
on what you pass into it. It's hard because SCO doesn't document any of this. You have to root through headers trying to figure out what structures are used when. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: FreeBSD Support of Hot Swappable NICs

2000-06-07 Thread Dan Nelson
ort powering off PCI slots or re-probing the PCI bus after bootup, both of which are required for hot-plug. I don't know how hard it would be to add, either. You'll probably have to ask -hackers about that (cc and reply-to reset there). -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: SVR4 Emulation [was Re: iBCS status?]

2000-06-07 Thread Dan Nelson
In the last episode (Jun 08), Mark Newton said: > Ok -- I envisaged that there'd be a difficulty with different SysV > vendors who used different semantics for the same syscalls, or > different syscall numbering schemes. "It could happen!" (and, as we > can see, it probably has). Possibly.. But

Re: SVR4 Emulation [was Re: iBCS status?]

2000-06-08 Thread Dan Nelson
f may not be SVR4-compliant? And this doesn't address any libraries other than libc, I suppose? Sounds like trying to emulate "SVR4" in itself isn't sufficient. We can still call the kld svr4.ko, but it's really doing SCO/SolarisX86 syscall emulation. -- Dan

Re: Way off-topic, but anybody know how to resurrect files from FAT-12?

2000-06-12 Thread Dan Nelson
ion Primary Mirror Directory simtelnet/msdos/microsft/ FilenameType Length DateDescription === pd0646.zip B21113 921209 Updated CHKDSK.EXE & UNDELETE.EXE for DOS 5.0 $ Try one of those, from your favorit

Re: Remote syslog with a tag ?

2000-06-13 Thread Dan Nelson
ked printers at work: Jun 9 10:34:46 hp8100mp1 printer: paper jam Jun 9 10:35:12 hp8100mp1 printer: error cleared Jun 13 08:14:43 hp4000sa printer: paper out Jun 13 08:14:43 hp4000sa printer: error cleared so, they are already tagged. -- Dan Nelson [EMAIL PROTECTED] To Unsubs

Re: Remote syslog with a tag ?

2000-06-13 Thread Dan Nelson
of the ones i previously > mentioned. That documentation is misleading, then. The hostname is definitely not looked at. See syslogd.c, the logmsg() function. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

<    1   2   3   4   5