mkfifo | Linux Command

A short introdution to name pipes as I see them. In the Linux world name pipes are typically used to permit communications between 2 unrelated processes. Name pipes are also known as FIFOs (first in, first out), normally used to establish a one-way flow of data.(half-duplex). Name pipes have a path name of a file associated with them, this is how calling process will reference the name pipes. Name pipes are file system persistent objects. What this means is that name pipes are always available till the time they are explicitly deleted from the file system as they are represented by as standard files on the file-system. As for standard pipes that we religiously use in our day to day Linux life also known as anonymous pipes are process persistent objects meaning that the name pipes are removed as soon as the processes no longer use them. What does mkfifo do mkfifo is used to create a FIFOs(name pipe). “mkfifo test-pipe”, now we have a name pipe called “test-pipe”. “ls > test-pipe”, this pipes the output of the ls command into the name pipe “test-pipe”. “cat name-pipe | while read line i; do rm -f $i; done” this will delete the files passed. At this point the “test-pipe” will be empty. “cat test-pipe” will come up blank. I’ve added a screen-shots of the above in action on the next page. Check it out. I’m not a Linux guru yet, so guys if my information not accurate or if there is a better way to improve my example please feel free to comment. ...

2007-02-22 · 2 min · Danesh Manoharan

WordPress 2.1.1 released | WordPress

WordPress 2.1.1 and 2.0.9 were released yesterday. Bugfixes for 2.1.1, 30 in total and secuity fixes for 2.0.9. The fixes in 2.1.1 are centered around encoding, XML-RPC, object cache and th eHTML code itself wherelse in 2.0.9 the fixes were to prevent XSS which is commonly known as cross-site scripting. Download WordPress 2.1.1 from wordPress and WordPress 2.0.9 from the release archive section. Installation guide. Upgrade guide. ** The Danesh Project has been upagraded and currently running WordPress 2.1.1 ** ...

2007-02-22 · 1 min · Danesh Manoharan

Releaselog | RLSLOG.net

Recently I stumbled upon releaselog and ever since then it has become the first site I visit everyday just before I start my daily torrent downloads. I have the feed added to my Google Reader page. I browse, read the review and download if it sounds or looks interesting. Done!! Imagine the simplicity. What I love fancy most about releaselog is the reviews. Every movie, software, music, etc.. always has a full review with good quality screenshots linked to it. The reviews provide end users with the ability to choose what file they really want to download instead of downloading something and later realizing it’s not what he/she wanted. I personally feel that the reviews actually increase downloads. Imagine yourself at a torrent site browsing through files, chances are you might not download a file with a weird name or has a name that’s not appealing but with reviews and honest feedback, the end user might download a file that he normally might have discarded. ...

2007-02-21 · 1 min · Danesh Manoharan

.htaccess password generator

Use this tool at Dynamic Drive to automatically generate all the code needed to protect a directory on your site. Below are the 2 files generated by the tool. .htaccess goes into the folder that you want to protect and .htpasswd should be in a folder not accessible from the web. I normally put my .htpasswd file in my apache’s base folder. .htaccess file AuthName "Restricted Area"<br /> AuthType Basic<br /> AuthUserFile /home/mydir/.htpasswd<br /> AuthGroupFile /dev/null<br /> require valid-user ...

2007-02-19 · 1 min · Danesh Manoharan

Hello world! The new begining, again!!

Yup, Hello world again. This time it is final. I decided to move “TheDaneshProject Tech Blog” up a level to just “TheDaneshProject”. It’s easier to remember and seems to be stronger brand name I think. Don’t you agree? I am concentrating more on Linux related reads, general tech and also my passion for tattoos and piercings. This time I am going to try publishing as much information as I can get my hands on from the local scene here in Malaysia. Tattoos and piercings in Malaysia will also be my major direction. ...

2007-02-15 · 1 min · Danesh Manoharan