Well, I'm lost on this one. I'm definately no script guy and I can't figure out why the 'fortune' line doesn't work when the script is ran in Kmail but works when ran from the CLI. Any ideas on where I'm screwing up?
#!/bin/bash echo "Regards" echo "Chris" echo "A 100% Microsoft Free Computer" echo "Registered Linux User 283774 http://counter.li.org" STR=$(uptime) TIME=${STR% user} RESULT=${TIME%} echo $RESULT fortune MS-FORTUNES if [ -p /tmp/xmms-info ] ; then echo "The current tune is $( grep Title: /tmp/xmms-info | awk -F': ' '{print $2}' )" fi Chris -- Regards Chris A 100% Microsoft Free Computer Registered Linux User 283774 http://counter.li.org 7:26pm up 28 days, 2:04, 1 user, load average: 0.32, 0.41, 0.49 The current tune is Virgin Radio Classic Tracks - Non-stop classic tracks from the makers of Virgin Radio
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________