Re: minor vi/vim qstn

2013-09-26 Thread Karl Vogel
# don't run background jobs at lower priority -- Karl Vogel I don't speak for the USAF or my company vogelke at pobox dot com http://www.pobox.com/~vogelke Teenage girl creates sustainable, renewable algae biofuel under her bed

Re: using pax command for archive restore

2013-04-07 Thread Karl Vogel
it rm $file done -- Karl Vogel I don't speak for the USAF or my company Why no one ever uses the Restroom on Star Trek #7: Special effects dept. draws a blank on Hi-tech toilets. ___ freebsd-questions@freebsd.org

Re: mutt and http//url???

2013-03-22 Thread Karl Vogel
them in a menu, and letting you run a command to view a specific item. If you're on a FreeBSD system, it's in /usr/ports/textproc/urlview. -- Karl Vogel I don't speak for the USAF or my company Oh, to be only half as wonderful as my child thought I was when he

Re: convert date and time to epoch in awk

2013-02-19 Thread Karl Vogel
you use to monitor your servers? -- Karl Vogel I don't speak for the USAF or my company John, this smells worse than your uncle's codpiece (which I wish you would stop wearing to work), and in reviewing it I can deduce that your parents were never formally introduced

Re: Fun Scripting Problem

2013-02-13 Thread Karl Vogel
to mean info you can get from something that calls stat(). The script below runs on BSD, Linux, or Solaris if you have GNU find installed. Season to taste. -- Karl Vogel I don't speak for the USAF or my company Mom was so overprotective, she only let us play Rock, Paper

Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Karl Vogel
the message from there. This way, the original logs are more likely to be intact when you investigate. -- Karl Vogel I don't speak for the USAF or my company Some guy just yelled at me for texting and driving. I told him to get off my hood and mind his own business

Re: sendmail not working

2013-01-10 Thread Karl Vogel
/localmailer.bin ${1+$@} exit 0 -- Karl Vogel I don't speak for the USAF or my company He fell for her like his heart was a mob informant, and she was the East River. --bizarre expressions found in English papers

Re: which C function is best to check for directory EXISTANCE?

2012-12-18 Thread Karl Vogel
and that I have read access to it? I'd just call open() with O_RDONLY and if it fails, check errno for EACCESS (you don't have permission) or ENOENT (doesn't exist). -- Karl Vogel I don't speak for the USAF or my company USELESS PHRASES WHEN SPEAKING TO A COP #9: You're

Re: cksum entire dir??

2012-09-14 Thread Karl Vogel
-- Karl Vogel I don't speak for the USAF or my company When I'm feeling down, I like to whistle. It makes the neighbor's dog run to the end of his chain and gag himself. ___ freebsd-questions@freebsd.org mailing

Re: cksum entire dir??

2012-09-13 Thread Karl Vogel
/sig[12] ddbed53e795724e4a6683e7b0987284c ./authlog ddbed53e795724e4a6683e7b0987284c ./cmdlog If your filenames contain whitespace, you can URL-encode them, play some games with awk, or use perl. -- Karl Vogel I don't speak for the USAF or my company This is really

Re: cksum entire dir??

2012-09-12 Thread Karl Vogel
these files elsewhere, I can repeat the steps and just compare the final hash; if it's anything other than 'fdc34...3039f', something's wrong. -- Karl Vogel I don't speak for the USAF or my company When In Doubt, Empty The Magazine--bumper-sticker seen on military base

Re: find date of last boot

2012-06-07 Thread Karl Vogel
On Thu, 07 Jun 2012 19:15:25 -0400, Fbsd8 fb...@a1poweruser.com said: F dmesg command does not show date of last boot. Are there some other F commands to find date of last boot? Try last reboot. -- Karl Vogel I don't speak for the USAF or my company He is not only

Re: find date of last boot

2012-06-07 Thread Karl Vogel
-%Y %T' /var/run/dmesg.boot -rw-r--r-- 1 root wheel 6319 10-Jan-2012 14:56:45 /var/run/dmesg.boot -- Karl Vogel I don't speak for the USAF or my company Dirt and grease under the fingernails is a social no-no, as they tend to detract from a woman's jewelry and alter

Re: /usr/bin/find - binary operands howto

2012-06-04 Thread Karl Vogel
to avoid a second pass through the filesystem. * Gives you a point-in-time picture of ownership, mode, etc. in case you need to back out your changes. -- Karl Vogel I don't speak for the USAF or my company When I read about the evils of drinking, I gave up reading

Re: 'rm' Can not delete files

2012-02-13 Thread Karl Vogel
in the habit of writing BASH and you have /bin/ksh installed, running ksh -n will syntax-check your script without executing it. I *think* pdksh does the same thing. -- Karl Vogel I don't speak for the USAF or my company My choices in life were either to be a piano player

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Karl Vogel
have the Korn shell installed? I've found that to be a nice compromise for scripts that have bash-isms. -- Karl Vogel I don't speak for the USAF or my company Texted a friend meaning to ask if she was busy. Me: Are you busty? Her: They're manageable, what's up

Re: opening vim with a flag: ready to write?

2011-12-15 Thread Karl Vogel
with the cursor at the beginning of the last line. -- Karl Vogel I don't speak for the USAF or my company Leighton Meester beats her mom in court --Dec 2011 headline that really could have been phrased better ___ freebsd

Re: Twiki problems - no such file or directory

2011-11-29 Thread Karl Vogel
/to/apache.bin root# cat /path/to/apache #!/bin/sh exec /usr/bin/truss -o /tmp/apache$$ -f /path/to/apache.bin exit 1 -- Karl Vogel I don't speak for the USAF or my company The freshmen bring a little knowledge in and the seniors take none out, so it accumulates

Re: where to ask about problems with bsdinstall in 9.0RC2?

2011-11-19 Thread Karl Vogel
instead of bzip2. I know disk space is cheap, but our rack space is limited. -- Karl Vogel I don't speak for the USAF or my company Sorry I'm taking up your ever so valuable disk space! That's okay, /dev/null is pretty big. --ill...@gmail.com, 14 Feb 2011

Re: User tasks in ~/.logout

2011-10-11 Thread Karl Vogel
* copy of a backup job (or whatever) on user logout might be worth it. -- Karl Vogel I don't speak for the USAF or my company Handy engineering conversions: 1000 aches = 1 kilohurtz --- #!/bin/ksh

Re: Embedding a RCS token in uname -i

2011-06-22 Thread Karl Vogel
sure your build config file has been checked in. -- Karl Vogel I don't speak for the USAF or my company Mr. Rogers was an ordained minister.--item for a lull in conversation --- me% cat -n

Re: How do you install utility built using gnu toolchain?

2011-05-13 Thread Karl Vogel
Running xargs rm TARGETS (and/or rmdir) gives me a pristine source directory. Sure, you can just remove the whole thing and unpack a clean tarball, but this is easier if you have local patches or you'd like to keep part of the generated output, like the configuration stuff. -- Karl Vogel

Re: Hardware suggestions

2011-04-26 Thread Karl Vogel
://arstechnica.com/gadgets/guides/2011/03/ars-system-guide-march-2011-edition.ars/ -- Karl Vogel I don't speak for the USAF or my company We are reluctant to admit that we owe our liberties to men of a type that today we hate and fear - unruly men, disturbers of the peace, men who

Re: Shopping cart other than OSCommerce? [LONG]

2010-12-08 Thread Karl Vogel
information to data brokers. -- Karl Vogel I don't speak for the USAF or my company ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd

Re: procmail config help

2010-11-17 Thread Karl Vogel
below. The .whitelist and .blacklist files hold email addresses (one per line) that you want to pass or block, respectively. Logfiles are stored in the user's ~/mail directory. -- Karl Vogel I don't speak for the USAF or my company Why you might be the reincarnation

Re: a question regarding proper printf(3) formating and alignment

2010-11-17 Thread Karl Vogel
thinking of file. -- Karl Vogel I don't speak for the USAF or my company When a man says it's a silly, childish game, it's probably something his wife can beat him at. --Epperson's law ___ freebsd-questions@freebsd.org mailing

Re: [OT] writing filters in sh

2010-10-28 Thread Karl Vogel
$0 exit 0 IFS=$'\n' while read data; do echo $data done exit 0 Resetting IFS is only necessary if you want to preserve whitespace in each line. Putting $data in quotes prevents any shell metacharacters from being expanded. -- Karl Vogel

Re: [OT] writing filters in sh

2010-10-27 Thread Karl Vogel
-- Karl Vogel I don't speak for the USAF or my company We seem not to have learned a basic lesson of history: Capitalism harnesses self-interest; socialism exhausts itself trying to kill it. --Linda Bowles ___ freebsd-questions

Re: filter a binary file and reduce 0x150a to 0x15

2010-10-19 Thread Karl Vogel
says read null-terminated lines, so if your binary file is big enough and has few enough nulls, you could chew up a diaper-load of memory. -- Karl Vogel I don't speak for the USAF or my company A raccoon tangled with a 23,000 volt line today. The results blacked out 1400

Re: Multiple Machines

2010-09-24 Thread Karl Vogel
2006 --- /etc/shells Wed Sep 9 21:06:04 2009 *** *** 6,9 --- 6,13 /bin/sh /bin/csh + /bin/ksh /bin/tcsh + /bin/bash + /usr/local/bin/ksh + /usr/local/bin/zsh -- Karl Vogel I don't speak

Re: Bash Script Help - File Names With Spaces

2010-08-17 Thread Karl Vogel
-d/ | rev For dirnames: find . regex-or-print-or-whatever | rev | cut -f2- -d/ | rev | sort -u -- Karl Vogel I don't speak for the USAF or my company When I'm feeling down, I like to whistle. It makes the neighbor's dog run to the end of his chain and gag himself

Re: .sh check for numeric content

2010-06-23 Thread Karl Vogel
12 1234 .12 1.234 12.3 1a a1: 0 is numeric 1 is numeric 12 is numeric 1234 is numeric .12 is numeric 1.234 is numeric 12.3 is numeric 1a is NOT numeric a1 is NOT numeric -- Karl Vogel I don't speak for the USAF or my company I

Re: Midphase Hosting

2010-06-11 Thread Karl Vogel
method (3), now it will take 7.5%. -- Karl Vogel I don't speak for the USAF or my company Freedom is the right to tell people what they don't want to hear. --George Orwell ___ freebsd

Re: Sending alarms to my mobile phone

2010-06-02 Thread Karl Vogel
-888-957-7243 http://www.usamobility.com/ Verizon Wireless Example: xxx...@vtext.com Customer service - 1-800-561-6227 http://www.verizonwireless.com/ -- Karl Vogel I don't speak for the USAF or my company Irrationality is the square root

Re: Bash lockups

2010-05-20 Thread Karl Vogel
one of the truss files will show something useful after a lockup. -- Karl Vogel I don't speak for the USAF or my company REMOTE CONTROL - female, because it gives a man pleasure, he'd be lost without it, and while he doesn't always know the right buttons to push, he keeps

Re: md5(1) and cal(1)

2010-05-11 Thread Karl Vogel
scripting D unecessarily complicated. Agreed. That's why I always install the GNU coreutils package, which includes the md5sum program. -- Karl Vogel I don't speak for the USAF or my company If men ruled the world #14: The 'Cops' program would be broadcast live so

Re: Cannot connect to Samba share

2010-04-26 Thread Karl Vogel
schannel = Auto server schannel = Auto -- Karl Vogel I don't speak for the USAF or my company Suggested names for Walmart Wine #13: White Trashfindel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org

Re: multishell user profile

2010-04-21 Thread Karl Vogel
-f $HOME/.envrc.sh . $HOME/.envrc.sh -- Karl Vogel I don't speak for the USAF or my company If someone has a mid-life crisis while playing hide seek, does he automatically lose because he can't find himself?--Steven Wright

Re: Kill via Cron...

2010-04-21 Thread Karl Vogel
could go as high as 64. Check the -b option. * Use gzip -1q for speed at the cost of slightly less compression. compress -c also works very well on dump images, and it's fast. -- Karl Vogel I don't speak for the USAF or my company phrasemonger, noun: a person who

Re: Kill via Cron...

2010-04-20 Thread Karl Vogel
of using four kill commands. There's a perl version of kill included in Perl power tools. I made some minor changes to use process groups instead: http://www.pobox.com/~vogelke/src/toolbox/perl/killpg.txt -- Karl Vogel I don't speak for the USAF or my company Son

Re: are the are C [or C++] src sites ....

2010-04-14 Thread Karl Vogel
and protocols * Thread, process and mutex functionality * Shared memory functionality * Time routines * User and group ID services -- Karl Vogel I don't speak for the USAF or my company Difference between airplanes and women #4: Airplanes don't object

Re: setting default directory ACLs using xargs

2010-02-13 Thread Karl Vogel
something dopey like this: #!/bin/sh cd /data find . -type d -print | nawk -v sq=\' '{ printf getfacl %s%s%s | setfacl -d -b -n -M - %s%s%s\n, sq, $0, sq, sq, $0, sq}' | sh -x exit 0 -- Karl Vogel I don't speak for the USAF or my company

Re: Rename pictures in the command-line interface

2010-01-05 Thread Karl Vogel
/rename.txt I put up most of the scripts in my ~/bin directory for examination here, if anyone's interested: http://www.pobox.com/~vogelke/src/toolbox/ The descriptions are NOT complete, but they're getting there. -- Karl Vogel I don't speak for the USAF or my company

Re: splitting Mbox file thread-sorted

2009-11-09 Thread Karl Vogel
the threading information I need. -- Karl Vogel I don't speak for the USAF or my company If men ruled the world #4: Instead of beer belly, you'd get beer biceps. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org

Re: splitting Mbox file thread-sorted

2009-11-08 Thread Karl Vogel
algorithm, as described by http://www.jwz.org/doc/threading.html. See http://search.cpan.org/ to track it down. -- Karl Vogel I don't speak for the USAF or my company Cute Celebrity Couple Names #4: Naomi Watts + Paul Newman = WattsNew

Re: Display TSV files with columns aligned

2009-10-21 Thread Karl Vogel
://www.cs.indiana.edu/~kinzler/align/ Align is a general-purpose text filter tool that helps vertically align columns in string-separated tables of input text. You can direct how the columns are separated on input and rejoined in the aligned output. It's great. -- Karl Vogel

Re: Display TSV files with columns aligned

2009-10-21 Thread Karl Vogel
that has a few T really long strings in it. thanks for pointing me to it. i'll see if i T can't figure out the script and how to modify it to add this trick. It would be lots easier to write a smaller script which finds and chops the columns you like, and pipe the output to align. -- Karl

Re: small question about tape-based dumps

2009-10-17 Thread Karl Vogel
waiting for something to write. -- Karl Vogel I don't speak for the USAF or my company The RAID was dirty *and* degraded (insert your mom joke here). --Mike Markley on Slashdot discussing Linux drives

Re: conky calendar

2009-10-10 Thread Karl Vogel
/') SMSO=$(tput smso) RMSO=$(tput rmso) cal | sed -e 's/^/ /' -e 3,\$s/ ${DAY}/ ${SMSO}${DAY}${RMSO}/ exit 0 -- Karl Vogel I don't speak for the USAF or my company Letterman's top signs your cat is trying to kill you #9: To tune of Meow Mix song sings, Kill kill kill

Re: / almost out of space just after installation

2009-10-09 Thread Karl Vogel
00 # # CD/DVD/RW: #/dev/cd0 /cdrom cd9660 ro,noauto 00 # - -- Karl Vogel I don't speak for the USAF or my company A society that champions

Re: way to check an email without sending it??

2009-10-05 Thread Karl Vogel
. Rcpt to: always returns ok unless the address itself is mangled. The VRFY command is always answered like this to keep people from harvesting addresses: vrfy santacla...@example.com 252 send some mail, i'll try my best -- Karl Vogel I don't speak for the USAF

Re: Whic mail server?

2009-09-27 Thread Karl Vogel
for me. Qmail has a very limited set of features... It's intended to handle one problem well, which it does. If you have some other requirements, http://www.qmail.org/ probably has a plugin that will do what you want. OK, now let's settle which text editor is best. -- Karl Vogel

Re: Can anyone reproduce this Samba problem?

2009-09-05 Thread Karl Vogel
. http://www.theopensourcerer.com/2008/04/17/a-shared-drop-box-using-samba/ has some suggestions that might help. -- Karl Vogel I don't speak for the USAF or my company :-{8Person who is unhappy with the results of her breast-enlargement surgery

Re: Is there such thing as a 'soft checksum' tool?

2009-09-05 Thread Karl Vogel
like a hash, but unlike hashes, a small change in the message results in a small change in the nilsimsa code. Such a function is called a locality-sensitive hash. -- Karl Vogel I don't speak for the USAF or my company Garlic gum is not funny.--written

Re: What should be backed up?

2009-08-23 Thread Karl Vogel
. -- Karl Vogel I don't speak for the USAF or my company Burned so much oil, it was single handedly responsible for the formation of OPEC. --a Chevy Vega owner, on Car Talk's 10 worst cars of the millennium

Re: please help to uninstall FreeBSD!!!

2009-08-18 Thread Karl Vogel
of programs around for conversion to/from 32-bit words, just so we could talk to everybody else on Earth. -- Karl Vogel I don't speak for the USAF or my company Men are liars. We'll lie about lying if we have to. I'm an algebra liar. I figure two good lies make a positive

Re: location of user crontab files?

2009-08-12 Thread Karl Vogel
On Tue, Aug 11, 2009 at 07:21:08PM -0400, Karl Vogel typed: K If you're using individual crontab files, be sure to rename /etc/crontab K or you might have duplicated cronjobs running simultaneously. On Wed, 12 Aug 2009 11:31:14 +0200, Ruben de Groot mai...@bzerk.org said: R I don't think

Re: FreeBSD for the common man(or woman) (was: upgrade 7.2

2009-08-11 Thread Karl Vogel
If you have GNU tar installed: root# help2man /usr/local/bin/gtar /usr/local/man/man1/gtar.1 -- Karl Vogel I don't speak for the USAF or my company Things that never happen in Star Trek #16: Counsellor Troi states something other than the blindingly obvious

Re: location of user crontab files?

2009-08-11 Thread Karl Vogel
have duplicated cronjobs running simultaneously. I use the file header beneath my signature for crontab files, so I don't forget what field goes where. It's also handy to define an environment variable in case a program should behave differently when run under cron. -- Karl Vogel

Re: GNU Tar and -T option

2009-08-08 Thread Karl Vogel
line with GNU tar versions 1.14 and 1.22. I'd grab the source and upgrade if I were you: http://ftp.gnu.org/gnu/tar/tar-1.22.tar.gz -- Karl Vogel I don't speak for the USAF or my company The glue on Israeli postage is certified kosher.--odd but true

Re: Fwd: Boot failure

2009-08-08 Thread Karl Vogel
for my workstation since 2003, and I've had no hardware problems running two versions of FreeBSD, one version of OpenBSD and one version of Solaris-10. Two other 260s have been file-servers since 2004. -- Karl Vogel I don't speak for the USAF or my company If caught

Re: A question for developers

2009-08-03 Thread Karl Vogel
you can do with it: http://www.hcst.net/~vogelke/src/editors/vim/vimrc/ -- Karl Vogel I don't speak for the USAF or my company Chemists wash their hands BEFORE they go to the bathroom. --Tim Thompson, System Administrator/Chemist

Re: limit to number of files seen by ls?

2009-07-30 Thread Karl Vogel
Karl Vogel wrote: K The main reason I stick with 1000 is because directories are read K linearly unless you're using something like ReiserFS... On Sun, 26 Jul 2009 08:34:50 +0100, Matthew Seaman m.sea...@infracaninophile.co.uk said: M You mean filesystems like FreeBSD UFS2 with DIRHASH

Re: limit to number of files seen by ls?

2009-07-25 Thread Karl Vogel
On Thursday 23 July 2009 09:41:26 Karl Vogel wrote: K Every version of Unix I've ever used had an upper limit on the size of K the argument list you could pass to a program, so it won't just be ls K that's affected here. That's why I use 1,000 as a rule of thumb for the K maximum number

Re: limit to number of files seen by ls?

2009-07-23 Thread Karl Vogel
. That's why I use 1,000 as a rule of thumb for the maximum number of files I put in a directory. A longer-term fix for your client would be to break up that JPEG file list into smaller sets based on (say) date or image topic or whatever. -- Karl Vogel I don't speak

Re: OT: wget bug

2009-07-18 Thread Karl Vogel
to mirror a site. I don't know how to make curl do something like walking a directory for a recursive download. You can get the source at http://curl.haxx.se/download.html -- Karl Vogel I don't speak for the USAF or my company If lawyers are disbarred and clergymen

Re: Interesting tool

2009-07-18 Thread Karl Vogel
: #!/usr/bin/perl #qp: decode quoted-printable crap from mailing lists. use MIME::Decoder; $decoder = new MIME::Decoder 'quoted-printable' or die unsupported; $decoder-decode(\*STDIN, \*STDOUT); exit(0); -- Karl Vogel I don't speak for the USAF or my

Re: OFFTOPIC: HP DL1xx vs IBM x3250 vs DELL R200

2009-07-15 Thread Karl Vogel
. The hardware's been checked, and the firmware's all up to date. I don't know if an x3250 and an x3400 are close enough hardware-wise for this to matter. -- Karl Vogel I don't speak for the USAF or my company Top oxymorons #25: Software documentation

Re: Should DNS be on same server as webserver?

2009-07-14 Thread Karl Vogel
On Jul 13, 2009, at 6:27 PM, Karl Vogel wrote: K You can fix the security problems by dumping Bind and using djbdns. On Tue, 14 Jul 2009 10:16:24 +0200, Ruben de Groot replied: R What security problems? This one ? :) R http://blogs.zdnet.com/security/?p=2812 When BIND offers (and makes good

Re: Should DNS be on same server as webserver?

2009-07-13 Thread Karl Vogel
an attack. (Yes, I'm assuming what you're actually J running) You can fix the security problems by dumping Bind and using djbdns. It's very easy to set up a caching nameserver without using all the memory on your system. See http://www.lifewithdjbdns.com/ for more. -- Karl Vogel

Re: good morning to all

2009-07-06 Thread Karl Vogel
CD image, but it came back with Missing operating system. Fortunately I was able to boot from a backup root partition, copy loader.old to loader, and reboot normally. -- Karl Vogel I don't speak for the USAF or my company Must destroy mankind! (His watch alarm goes

Re: Changing my login directory

2009-06-22 Thread Karl Vogel
to given character sets. For example, grabchars -c 0123456789 -n2 -t10 get two numbers with a 10-second timeout. -- Karl Vogel I don't speak for the USAF or my company Never do anything against conscience even if the state demands

Re: Changing my login directory

2009-06-19 Thread Karl Vogel
~/.cdlist.new } To find the most often-used directories, the chdir and chpwd functions above will store the name of every directory you cd to in $HOME/.cdlist.new. To find your most popular directories: me% sort ~/.cdlist.new | uniq -c | sort -n | tail -- Karl Vogel

Re: Problem with bash script

2009-06-16 Thread Karl Vogel
plus X. case $# in 1) echo command didn't print anything ;; 7) echo success: $*; echo year should be 7th arg: $7 ;; *) echo something else is wrong ;; esac exit 0 -- Karl Vogel I don't speak for the USAF or my company There is nothing

Re: Problem with bash script

2009-06-16 Thread Karl Vogel
I botched the filter example in my previous blathering. This will ignore output from find containing patterns: root# find . -depth -print | fgrep -v -f /some/patterns Leaving off the -v will keep output containing those patterns. -- Karl Vogel I don't speak for the USAF

Re: Terminal / vim / shortcuts

2009-06-14 Thread Karl Vogel
in by pressing 'v': map v }jmbk{ma}:'a,.!fmt -1^V|fmt -75CR'b The ^V is an actual control character, so you have to hit Ctrl-V twice to put it in your .vimrc file. My .vimrc file is here: http://www.hcst.net/~vogelke/src/editors/vim/ -- Karl Vogel I don't speak

Scripts to monitor host availability

2009-06-12 Thread Karl Vogel
If you want to keep an eye on some hosts without doing a full Nagios install: http://www.hcst.net/~vogelke/src/ishostup/ -- Karl Vogel I don't speak for the USAF or my company If you can't be kind, at least have the decency to be vague.--unknown

Re: OT - help w configure, make, etc.

2009-06-10 Thread Karl Vogel
to the versions under /opt/sfw, but I had no luck. There's probably some really easy way to build this, or I could just build the required libraries, but I didn't have time to mess with it. -- Karl Vogel I don't speak for the USAF or my company A host of nameservers

Re: Need a filesystem with unlimited inodes

2009-06-10 Thread Karl Vogel
; } $sum = 0x;# keep lowest 16 bits no integer; return sprintf(%4.4x, $sum); } me% ./mkchunks freebsd solaris 16/f7.zip freebsd ca/1f.zip solaris You'll get a better distribution if you use a hash like Digest::SHA1. -- Karl Vogel

Re: Cronjob

2009-06-08 Thread Karl Vogel
J to be executed is no option. I have two scripts for this; one handles the last day of the month, and the other handles the last work/business day of the month. http://www.hcst.net/~vogelke/src/lastday/ -- Karl Vogel I don't speak for the USAF or my company Liberty

Re: PDF inventory software

2009-06-08 Thread Karl Vogel
? If the latter, you could use something like xapian or hyperestraier to make a full-text index of your files. -- Karl Vogel I don't speak for the USAF or my company Top oxymorons #22: Childproof ___ freebsd-questions@freebsd.org

Re: What server hardware are you buying from the big companies these days?

2009-06-08 Thread Karl Vogel
only problem so far has been a BIOS issue, but IBM site-support has been great. -- Karl Vogel I don't speak for the USAF or my company Golfer: Do you think I can get there with a 5-iron? Caddy: Eventually. ___ freebsd-questions

Re: enclose code and testfile.

2009-06-07 Thread Karl Vogel
; # text before ? $match = $2;# text inside ?...? print $prev; } print $_\n; # whatever's left over. exit(0); -- Karl Vogel I don't speak for the USAF or my company Programming is like sex: one mistake and you have to support

Re: Can a Bourn Shell Script put itself in the background?

2009-06-06 Thread Karl Vogel
instead of having to grub around in the process table. -- Karl Vogel I don't speak for the USAF or my company Therapy is expensive. Popping bubble wrap is cheap. You choose. --bumper sticker

Re: ISP questions

2009-06-05 Thread Karl Vogel
: If I'm still doing this in 21 years, someone please write a program to kill me. -- Karl Vogel I don't speak for the USAF or my company Oh anchor bimbo, The gleam from your whitened teeth Gives me a migraine.--snotty media haiku

Re: Can a Bourn Shell Script put itself in the background?

2009-06-05 Thread Karl Vogel
$@ ;; 1) echo $$ not a daemon, args $@ DAEMON=yes daemon $0 ${1+$@} ;; esac exit 0 me% ./doit a b c 18131 not a daemon, args a b c me% tail -1 /var/log/syslog Jun 5 18:41:54 host test: 18135 is a daemon, args a b c -- Karl Vogel

Re: rsync approach

2009-05-30 Thread Karl Vogel
# rm /someplace/bkup/can/write/arch.pax.gz If the files you're syncing are huge, you're better off using root login plus rsync. -- Karl Vogel I don't speak for the USAF or my company SUVs are gross because they're the solution to a gross problem: how to make minivans

Re: find and searching for specific expression in files

2009-05-30 Thread Karl Vogel
, be prepared for every kind of crap character in the filename you can imagine. Use nulls to delimit the filenames, i.e.: find . -mtime +7 -print0 | xargs -0 grep -i foo The GNU versions of find and xargs support the 0 options as well. -- Karl Vogel I don't

Re: Customize .vacation.msg to include subject, sender, etc?

2009-05-29 Thread Karl Vogel
(man procmailex) which does exactly what you want. Source: http://www.procmail.org/ Tips: http://lipas.uwasa.fi/~ts/info/proctips.html -- Karl Vogel I don't speak for the USAF or my company Piece of crap printer Soars like a sparrow as I Heave it off the bridge

Re: Another uptime story

2009-05-27 Thread Karl Vogel
others. Fortunately, our backup server stayed up: date: Wed May 27 16:45:10 EDT 2009 uname: FreeBSD 6.1-RELEASE #0 uptime: 4:44PM up 595 days, 3:09, 1 user -- Karl Vogel I don't speak for the USAF or my company Si hoc legere scis nimium eruditionis habes

Re: Another uptime story

2009-05-27 Thread Karl Vogel
can put up a tarball if anyone's interested. -- Karl Vogel I don't speak for the USAF or my company When buying and selling are controlled by legislation, the first things to be bought and sold are legislators. --P.J. O'Rourke, Parliament of Whores

Re: Backing up FreeBSD and other Unix systems securely

2009-05-18 Thread Karl Vogel
to do things like find files with just one link, compute hashes, do hardlinks, etc. I can put up a tarball if anyone's interested. -- Karl Vogel I don't speak for the USAF or my company The best way for the Government to maintain its credit is to pay as it goes

Re: Run script on boot, as ordinary user

2009-05-08 Thread Karl Vogel
: run-rc-shutdown | sh If you don't have setuidgid installed, replace with su -c ... -- Karl Vogel I don't speak for the USAF or my company The little boat gently drifted across the pond exactly the way a bowling ball wouldn't. --bizarre expressions found in student

Re: how to copy files without directories

2009-04-20 Thread Karl Vogel
Corrected by original poster - to copy directories without files, try this: % cd /source/dir % find . -type d -depth -print | pax -rwd -pe /dest/dir Permissions and modification times should be preserved. -- Karl Vogel I don't speak for the USAF or my company A codicil

Re: Umask and Samba

2009-04-14 Thread Karl Vogel
create mode = 0660 force directory mode = 0775 You might be able to turn world permissions off by using: create mask = 0740 or security mask = 0770 -- Karl Vogel I don't speak for the USAF or my company Drawing on my fine command of language, I said

Re: sorta newb help compiling samba

2009-04-11 Thread Karl Vogel
any network access, which means no chasing dependencies; I put in a CD with some source and run a build script. -- Karl Vogel I don't speak for the USAF or my company Seen in an East African newspaper: A new swimming pool is rapidly taking shape since the contractors

Re: sorta newb help compiling samba

2009-04-11 Thread Karl Vogel
anything without /usr mounted is when running single-user, so a message saying /usr/bin is missing wouldn't be a bad idea. -- Karl Vogel I don't speak for the USAF or my company The danger is not that one class is unfit to govern. All classes are unfit to govern

Re: sorta newb help compiling samba

2009-04-11 Thread Karl Vogel
if the enumerated types module has been installed, but I can't see a reason to require anything more specific than (say) perl 5.6 or above. -- Karl Vogel I don't speak for the USAF or my company PETA - People Eating Tasty Animals --bumper sticker

Re: sorta newb help compiling samba

2009-04-10 Thread Karl Vogel
, but sends its signals to a process group instead of a process. -- Karl Vogel I don't speak for the USAF or my company You know you're a redneck if you've ever been involved in a custody fight over a hunting dog

Re: web based file sharing

2009-03-28 Thread Karl Vogel
. http://home.gna.org/drall/ was the original link, but it doesn't seem to be working today, so you might want to Google drall 1.17 and grab it from a mirror. -- Karl Vogel I don't speak for the USAF or my company He can compress the most words into the smallest

  1   2   >