> > Here's something i didn't know. Apparently, a program can find > > out what sym link was called to run it: > > > > soffice -> /usr/lib/openoffice/program/soffice* > > > > spadmin -> /usr/lib/openoffice/program/soffice* > > > > If i run soffice, i get soffice. If i run spadmin, i get the > > printer setup box.
> The first parmiter passed to a program or script is always the > program name, with path, if any. Try this script. > > #!/bin/bash > echo $0 > > Name is anything you like, make it executable, and try calling it > using different path names. (./script, /home/mikkel/bin/script, > etc) That is cool. I always muck my way thru bash, but i would like to get more fluent in it... thanks for the further explanation. eric -- Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________