Better Blog Entry

The Asterisk LogoYou Want Blogs?  We Go Blogs!

Now is the time for all good men to come to the aid of their country.  We all live in a yellow submarine.  This is a test of a blog.  Lorem ipsum dolor sit amet.  Incendo lictus miraculus blogus tendigorium.  Argle bargle.  Mares eat oat and does eat oats and little lambes eat ivy.  A kid will eat ivy too, wouldn't you? 

How about a little code, scarecrow?

Display menu until press 0 by using child process

/*A small program that display menu until press 0*/
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
main()
{
   int choice;
   do {
      printf("---------------=====00=====---------------");
      printf("

        Main Menu
");
      printf("Please select an option that you need:
");
      printf("    1. Executer ls command
");
      printf("    2. Execute ps command
");
      printf("    3. Execute who command
");
      printf("    0. exit
");
      printf("
Your choice: ");
      scanf("%d", &choice);
      //while (getchar() != '
');
      switch (choice){
          case 1:
               if (fork())
                  wait(0);
                else
                  execlp("ls", "ls", (char *)NULL);
                  break;
          case 2:
               if (fork())
                  wait(0);
               else
                  execlp("ps", "ps", (char *)NULL);
                  break;
          case 3:
               if (fork())
                  wait(0);
               else
                  execlp("who", "who", (char *)NULL);
                  break;
          case 0:
               break;
          default:
               printf("Please enter only 0-3
");
       }
   }
   while (choice != 0);
}

Let's add a picture:

Mark And AllisonHere's a great picture of Marko with Allison Smith, the voice of Asterisk.

Now lets see if we can add a video to this post:

 

So here's the next bit of text we can stick into the blog node.  Wow is this cool.  I love this thing and I want to see it again and again.  Yeehah.

This is SO lame. You don't

This is SO lame. You don't know how to blog.