Rosemary McGillicuddy wrote:

Rosemary, sorry I jumped into this thread kind of late, but below is the script I run for my sig:

#!/bin/bash
echo "Chris"
echo "Registered Linux User 283774 http://counter.li.org";
STR=$(uptime)
TIME=${STR% user}
RESULT=${TIME%}
echo $RESULT
echo "Mandriva Linux 10.1 Official, kernel $(uname -r)"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

/usr/games/fortune -e

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" if [ -p /tmp/xmms-info ] ; then echo "Live - Classic Rock - From Virgin Radio UK $( grep Title: /tmp/xmms-info | awk -F': ' '{print $2}' )"
fi

The fortune files are stored in /usr/share/games/fortunes. The -e in my script means "quoted from man fortune:

The -e option says to consider all files equal; thus

 fortune -e funny not-funny
is equivalent to

 fortune 50% funny 50% not-funny
HTH

Righto - in an attempt to combine the two sets of instructions I did this:
My script

#!/bin/bash
echo "Rosemary"
echo "Registered Linux User #386597 http://counter.li.org";
echo
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/games/fortune -e

echo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"


Then did this:  into a new file called kronus, as per Joesnildo

*/2 * * * * /home/rosemary/sig > /home/rosemary/fortsig

after making an empty file which I called fortsig.

I also did "crontab kronus"

However it doesn't work. I am assuming I am missing something out. Thanks in advance


--
Rosemary
~ ~ ~ ~
Registered Linux User # 386597  http://counter.li.org
"A friend may well be a masterpiece of nature".  Emerson

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to