Eric Huff wrote:
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.

eric
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)

Mikkel
--

  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!


____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to