Blog of Leonid Mamchenkov

You just stepped in a pile of posts.

Entries Tagged as 'Operating_Systems'

Working with named pipes in Perl

Posted in All on September 14th, 2005 · 6 Comments

The collegue of mine came across a problem that developed into an interesting solution that I decided to share with the world. Actually, I think the world is pretty much aware of the solution, but just in case that I will ever be looking for this solution again, I’ll have it handy here.

The task at hand was to do some processing of the logs on the fly. The syslog was configured to filter the appropriate logs into a named pipe and a Perl script was written to read from the said pipe and do all the processing.

The original piece of code looked something like this:

open (SYSLOG, "<$named_pipe")
  or die "Couldn't open $named_pipe: $!\n";

while () {
  do_processing($_);
}

close(SYSLOG);

The problem came with syslog daemon restarts. Every time the syslog was stopped, the EOF was sent to the pipe and the script stopped reading it.

[Read more →]

→ 6 CommentsTags: , , , , , , , , , ,

Daily del.icio.us bookmarks

Posted in All on August 31st, 2005 · No Comments

Today’s links belong to one of the two topics - visual arts or technology.

Visual arts (photography, graffiti, posters, and fashion):

Technology:

These were shared bookmarks for del.icio.us user tvset on 2005-08-30.

→ No CommentsTags: , , , , , , , , ,

Quake III Arena source code GPLed

Posted in All on August 25th, 2005 · No Comments

id Software has released the source code for its Quake III Arena for the public under the GPL. That is even before Quake 4 has been released! If you’re interested, you can download the source code here.

Now game writers all over the world can unite and produce some really cool games for Linux, Windows, and Mac. Yeah!

→ No CommentsTags: , , , , , , , , , , ,

Merging two AVI files

Posted in All on August 14th, 2005 · No Comments

Here is a quick tip if you need to merge two AVI files into one using Linux. In fact, you can glue together more than two files. You can glue together as many as you want.

  1. Install transcode. Actually check if it is already installed first as many distributions include it.
  2. Run the following command: avimerge -o result.avi -i source1.avi source2.avi

avimerge is a part of transcode package.

→ No CommentsTags: , , , , , ,

12 minutes

Posted in All on July 7th, 2005 · 2 Comments

They say that your unpatched Microsoft Windows machine will live for only 12 minutes on the net before getting 0wned. Now, a lot of people are saying a lot of different things about Windows security, but I tend to agree to this particular one. I’ve seen it plenty of times at work. In fact, we now have a requirement for all colocated clients to fully patch their servers before connecting to our backbone.

Slashdot has a story. And a dup.

→ 2 CommentsTags: , , , , , , , , , ,