nall – schedule your tasks like a pro

nall is a utility to run your scripts ( for whatever ) every defined period. Here is description:

Description : Nall is a small gtk+ application that discretely fits into your freedesktop
: system tray (such as trayer).
:
: Its purpose is to spawn periodically every kind of script and display a
: one-line output in the tooltip window. The main usage of nall is monitoring or
: just notifying of almost everything (it just depends upon your imagination and
: ability to script).

For installation :

sudo yum install nall

Once done, you can start from terminal as “nall” or create a autostart file “~/.config/autostart/nall.desktop” to start it automatically when you log in :

[Desktop Entry]
Type=Application
Exec=/usr/bin/nall
Hidden=false
NoDisplay=true
X-GNOME-Autostart-enabled=true
Name[en_US]=nall
Name=nall
Comment[en_US]=nall
Comment=nall

fork a new process in perl

I was doing something today and found that I require to fork a new process in perl. Now I had never done this earlier, so I did not know how to do this.

First some background :

I was doing some program very similar to http server, where the script accepts some input through a socket and then processes the same. In doing so I was seeing that the script was taking some time in processing the input and thus was not processing the second request until the first one was completed. Simple solution, fork the process.

[cc lang=”perl”]

$pid=fork();

if (! $fork)

{

do the child processing

exit

}

else

{

do the parent processing

exit

}

Enhanced by Zemanta

cdargs – bash cd command with bookmarks and browser.

\"Screenshot
Image via Wikipedia

cdargs is a bash shell cd with bookmarks and browser. Quite useful if you are developer or someone who use\’s the bash shell very frequently

Name       : cdargs
Arch       : i686
Version    : 1.35
Release    : 5.fc12
Size       : 114 k
Repo       : installed
From repo  : fedora
Summary    : The shell cd with bookmarks and browser
URL        : http://www.skamphausen.de/software/cdargs/
License    : GPLv2+
Description: Enables the user to quickly change working directory by navigating cd arguments
           : and expanding the shell built-in cd with bookmarks and browser.

You can check the man page with man cdargs to get more details about the command. And if you don\’t have it installed and still you want to check out the man page then click cdargs man page.

Its quite easy to use and would save you a lot of typing and the man page describes it all 🙂

\"Reblog