# 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
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
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
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
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
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
/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
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
--
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
/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
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
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
-%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
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
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
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
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
/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
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
* 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
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
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
://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
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
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
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
$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
--
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
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
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
-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
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
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
-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
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
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
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
-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
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
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
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
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
/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
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
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
://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
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
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
/')
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
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
. 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
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
.
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
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
.
--
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
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
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
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
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
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
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
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
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
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
. 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
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
:
#!/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
.
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
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
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
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
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
~/.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
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
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
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
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
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
;
}
$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
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
? 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
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
; # 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
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
:
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
$@
;;
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
# 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
, 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
(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
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
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
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
:
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
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
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
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
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
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
, 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
.
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 - 100 of 122 matches
Mail list logo