Rosemary McGillicuddy wrote:
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"

Rosemary --
Put the sig file and the fortsig in different folders. I did it and the whole thing worked.
To see if cron took the job, issue the command
$ crontab -l

HTH
--
Josenildo Marques
Homepage http://planeta.terra.com.br/arte/cyb/
Fotolog http://fotolog.terra.com.br/imaginis
usuário Linux registrado No. 341648
*************************************
"and look at this prepronominal funferal, engraved and retouched and edgewiped and puddenpadded, very like a whale's egg farced with pemmican, as were it sentenced to be nuzzled over a full trillion times for ever and a night till his noddle sink or swim by that ideal reader suffering from an ideal insomnia: all those red raddled obeli cayennepeppercast over the text, calling unnecessary attention to errors, omissions, repetitions and misalignments:"
(120.9-16) Finnegans Wake
*************************************

____________________________________________________
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