Author's archive
Adventures in Linux: #!/bin/bash Dept. 5
I just knew there was a way to completely automate this process. Now I’ve learned about BASH variables.
#!/bin/bash
# This script stops Apache,
# gzips the current log files,
# removes the old log files (access_log and error_log),
# creates a new folder named with today’s date and time,
# moves the gzipped log files to that location, then
# restarts Apache.
#
# The name of the folder is “month-day-year-hour-minute” so
# that the script can be run multiple times in the same day
# without stepping on itself (unless you run it twice in
# the same second).
#
# If someone wishes to tailor the script to his or her own
# system, it should work fine as long as the path
# statements are edited to reflect his or her configuration.
NOW=$1
: ${NOW:=$(date +”%m-%d-%Y-%H-%m”)}
cd /usr/local/apache2/bin
./apachectl stop
echo “Stopping Apache”
cd /usr/local/apache2/logs
mv access_log access_log.old
mv error_log error_log.old
echo “Renaming log files”
gzip access_log.old
gzip error_log.old
echo “Zipping log files”
#Gzip removes the original files after zipping them.
echo “Removing *.old files.”
mkdir /root/files/oldlogs/$NOW
echo “Making folder /root/files/oldlogs/$NOW”
mv /usr/local/apache2/logs/*.gz /root/files/oldlogs/$NOW
echo “Archiving old log files.”
cd /usr/local/apache2/bin
./apachectl restart
echo “Restarting Apache”
Dick Cheney Can Hunt in Delaware 1
Horseshoe crabs are fair game:

They move very slowly. They are pretty much useless as food. They are unable to defend themselves.
Perfect targets for Our Vice President.
Overt Hypocrisy . . . 1
. . . gets tiresome after a while.
Bringing new meaning to the term, “Borked”:
Judge Robert Bork, one of the fathers of the modern judicial conservative movement whose nomination to the Supreme Court was rejected by the Senate, is seeking $1,000,000 in compensatory damages, plus punitive damages, after he slipped and fell at the Yale Club of New York City. Judge Bork was scheduled to give a speech at the club, but he fell when mounting the dais, and injured his head and left leg. He alleges that the Yale Club is liable for the $1m plus punitive damages because they “wantonly, willfully, and recklessly” failed to provide staging which he could climb safely.
Judge Bork has been a leading advocate of restricting plaintiffs’ ability to recover through tort law. In a 2002 article published in the Harvard Journal of Law & Public Policy–the official journal of the Federalist Society–Bork argued that frivolous claims and excessive punitive damage awards have caused the Constitution to evolve into a document which would allow Congress to enact tort reforms that would have been unconstitutional at the framing.
(Aside: The Yale Club. How Bush league.)
It does sort of seem to be a Republican thing, now doesn’t it? Democratic hypocrits, and, yes, there are some, at least have some shame. Except, possibly, for Congressman Jefferson.
Via Atrios.
Hypocrisy Watch Update 0
Nothing on Senator Thompson’s health as regards the Senator’s possible run for president. I guess Republicans get a free pass from Waste of Newsprint.
Nada. Waste was all wrapped up in F-words and Don Slimus last week.
And, oh! goody! goody! goody! tomorrow the paper will arrive with another hole in it where ideas used to be.
Decal 0
A truck went past me today and caused me to break out laughing.
In the lower right corner of the rear window was a decla that said
I needed a laugh.
How I Spent My Saturday Morning 6
Remember when I got plumbed?
Today I replaced the step that the plumbers had to cut through. Six 80 pound bags of concrete mix and two heart attacks later, I’m stepped. As you can tell from the angle of the picture, I can barely lift my camera phone straight.
I’m not lifting anything else all day.

(Don’t you love where they put the clean out? I think I’ll paint it puce.)
Cause—>Effect 0
I’ve mentioned the copout before. When “conservatives” get power and their policies fail, the wingnut noise machine starts to say that “X (whoever it may happen to be) is not really a conservative.”
The problem with that rationale, of course, is that “X (whoever it happens to be)” is really a conservative. It’s the policies, not the politicians, which are failures.
Now, when I say “conservative,” I do not mean the conservatism of, say, Teddy Roosevelt, who actually believed in, gosh!, conserving things.
I mean the policies of those who, under the label of conserving, want to fundamentally undermine alter American society, the American economy, and, most of all, American freedoms. (Ironic, ain’t it, that those who most vocally claim that someone else hates our freedom are the first to violate the basic rights that the framers established in the Constitution of the United States of American?)
(I guess that’s why they call themselves “neo-conservatives,” to distinguish themselves from actual conservatives.)
Neo-Conservatism is founded in, well, air.
Air and wishful thinking. The wishful thinking that told us that Iraq would be a “cakewalk” and that Iraqis would welcome us as “liberators.” (I’m not even going to bother to cite sources for those quotations. They are too well known, it’s too late, and I’m too tired–but the link below was too powerful to let wait until tomorrow.)
And whenever it’s proponents get in power, they prove that through the failures of their policies.
Bush and his enablers are no exception.
Follow the link to read more:
For example, none of these people are complaining about the fact that he lowered taxes in wartime, an unprecedented policy in all of history. They can complain all they like that he hasn’t been “fiscally conservative”, but they not only supported his war and his tax cuts, but they refused to so much as question the fact that he ran it in the most expensive way imaginable – not just pseudo-privatizing the functions of the armed services, but actually giving the private companies they outsourced to incentives to overspend and generally waste resources. (And they let him force them to pass the drug-benefit bill with a clause forbidding negotiations to keep prices down.)
Via Atrios.
My Second Edition of What Digby Said 0
What’s this Republican fascination with animated special effects, anyway?
The Opinions of Others Confirmed 3
I’ve often been told I have a Super Ego.
|
You Are the Super Ego |
![]() While some people may think first and act later… you often don’t act at all. You rather be safe than sorry, and you take ethics pretty seriously. Like everyone, you have some pretty crazy desires. But unlike everyone, you restrain yourself. You have high standards for your own behavior. And you happily exceed them. |
Via Susie.
Protecting the American Way (Updated) 0
Yeah. Right.
Listen here, from today’s Fresh Air on NPR:
Protecting the American Way by emulating the KGB.
Addendum:
Brendan. Read it. I’m not even going to try to summarize it.
Public Service, Goodfellas Dept. (Updated) (Updated Again) 3
So Mr. Libby has been sentenced to 2 1/2 years soft labor (emphasis added):
Let us look critically at the Republican concept of good works and good deeds:
Lie to the court and to the authorities; violate the principles of truth, justice, and the American way; be complicit in efforts that ended the career of a competent public servant; and, very likely, cover up your boss’s roll in the whole thing.
Yeah, that’s good works and good deeds.
Bush style.
Addendum, Later that Same Evening:
Addendum, 6/6/2007
Tribal Ritual 3
Yesterday, I bugged out of the cooling tower place early. When I went down there, I had not realized that the Circular Soiree had been postponed because of rain and I wanted to be on the road and past Dover before the traffic hit.

I missed most of it. A lot of people left Sunday because they weren’t able to stay an extra day. I’m told the stands were only half full (that’s 70,000 or so people, I think).

The presence of the Monster Mile draws a lot of money to Delaware.
People stay as far as 50 miles away, and big box stores, such as Walmart, allow the fans to park their RVs on portions of their lots.
It’s an odd phenomenon. A lot of the fans set up their RVs, set out their portable TV satelite dishes, and watch the race from their lounge chairs under their RV awnings. That way, they can drink unbroken from morning till night.

Sadly, a certain percentage of them are not very good advertisements for civility. This can happen when you cross large numbers of persons with large quantities of alcohol.
Dover residents pretty much stay in their homes except when the time trials or the race is actually going on and the fans are either already passed out or otherwise occupied.
In other news, NASCAR is concerned that its popularity has sort of plateaued. In particular, they are trying to attract more minority fans.
In the words of one citizen of Dover, (I am not making this up), “Fat chance, as long as they have a bunch of drunken, obnoxious rednecks waving the Confederate flag surrounding the track.”
Oh, back to my commute. I got caught in the first wave of RVs fleeing Dover. From the way they were driving, they were trying to get back home Sunday night. I saw one RV so big the driver was towing it with a semi-tractor.
That’s another side effect of the Monster Mile. It give out-of-state drivers an excuse to come to Delaware and drive badly.
Drinking Liberally (Updated) 1
Tangier, 18th and Lombard, Philadelphia, tomorrow, 6 p. m.
By the way, Tangier’s hamburgers got honorable mention in the local rag’s hamburger search.
I-76 to the South Street Exit. East on South Street and look for a parking place around 18th. It’s Philly, you may have to circle a few blocks. Bring quarters.
Lombard is one block north of South next to Jeff.
Plan (God willing) to see you there.
Addendum, 6/5/2007
God wasn’t willing.
Steve Gilliard 0
I was an occasional, but not a regular reader of The News Blog.
But this post on the passing of Steve Gilliard by Jon Swift affected me deeply.
The death rate is constant: One per person.
But it is always sad when a good person passes away.
Please, God, I Don’t Want To Be a Gold Star Parent, Not for This (Updated) 4
Phillybits describes what those of us whose children serve honorably for a dishonorable regime try not to think about.
Addendum, later that same night:
Oh, my. I missed this earlier (it’s been a long week, and it’s only Monday).








