« Amarok scrash в e17 | Home | Един свободен обяд - форма на протест »
By admin | January 31, 2008
Искало ли ви се е да споделите нещо с някой, но то да не бъде разбрано от никого? Или пък се притеснявате от блоговете? А боже би сте програмист, който общува повече със компилаторите отколкото с хора?
Просто се обърнете към /dev/null ;). Винаги изслушва и ви разбира.
bash-3.2$ cat samotnik.sh
#!/bin/bash
#/dev/null Chat. /dev/null is my best friend
# Copyright 2007, Blagovest Petrov
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
function nullsay() {
# /dev/null also have a soul :)))
Null_Answers=”Hmm,yes
yes”
answer=($Null_Answers)
c_answers=${#answer[*]}
echo ${answer[$((RANDOM%c_answers))]}
exit 0 ;}
ANSW=”5″
while [ 1 ];
do
#########
echo -n “Nullchat> ”
read chat
echo $chat > /dev/null;
if [ $RANDOM == “1″ ]
then echo “I must go to sleep :). Bye ;).”
else
nullsay
fi
############
sleep $ANSW
done |
PS/2: Относно личния живот - ето една интересна мисъл на Линус Торвалдс: “Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)” //Wikiquote
Topics: Uncategorized |
Comments