On Monday 06 Feb 2006 02:14, Kevin B. O'Brien wrote:
> At 06:19 PM 2/4/2006, Glenn said something remarkably like (but
>
> somehow subtly different from):
> >On Saturday 04 February 2006 15:09, Kevin B. O'Brien wrote:
> > > Ah, thank you. fortune is already installed on my Linux box. Now I
> > > just need to figure out how to use it to create a signature in
> > > Evolution. If you have any thoughts on that I would be very happy to
> > > receive them.
> >
> >Here's the script I use in KMail, in case it might be of use.  Haven't
> > used Evolution in a long time, so can't verify that it's usable in Evo. 
> > I'll comment out all of the lines (the only one that needs to stay
> > commented in the usable version is the /bin/bash line, of course.)
> >
> >#!/bin/bash
> >#STR=$(uptime)
> >#TIME=${STR% user*}
> >#RESULT=${TIME% *}
> >#echo -n $RESULT
> >#echo " running $(cat /etc/mandrake-release), kernel $(uname -r)"
> >#echo "Registered Linux user #324360"
> >#echo
> >#/usr/games/fortune
>
> OK, I am still missing something here. When I try to run the script,
> I get "Command not found". I have tried it with the first line
> commented out, or not commented, and it seems to make no difference.
> I did make it executable. I must be missing something simple, so if
> you have any idea, I would appreciate it.
>
> Regards,

You will need to give the explicit path to the script. For 
example /home/myuser/myscripts/mysigscript
~/myscripts/mysigscript will also work since '~' means 'my home'.

Linux will find executable files without an explicit path only if the path is 
defined in your $PATH environment variable. The standard $PATH variable does 
not include your /home.


And just so there is no confusion you should remove the '#' comment character 
from every line of that example script except the first (The '#!' sequence 
tells the system what sort of script it is)

derek

-- 
www.jennings.homelinux.net
____________________________________________________
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