On Wednesday 31 August 2005 07:32 am, Rosemary McGillicuddy wrote: > > Thanks should go to Chris Pollock and Margot. > > Thanks guys, but I am feeling quite stupid about this as have not been > able to work it out. Do I put the actual quotes into the script? > > Thanks
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 -- Chris Registered Linux User 283774 http://counter.li.org 18:51:45 up 10 days, 6:35, 1 user, load average: 0.29, 0.55, 0.35 Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Polexia Aphrodesia: It's all happening! -- "Almost Famous" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Live - Classic Rock - From Virgin Radio UK Virgin Radio Classic Rock - -
____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
