"Federico Sevilla III" <[EMAIL PROTECTED]> wrote:
<snip>
>So now we know it's called a "combined binary". Perhaps someone's got some
>techie answer to this. Interesting trivial thingie, for me at least. :)
Perhaps the best way to explain this is via an example.
Create a bash script called erap as follows:
------------<start of erap script>------------
#!/bin/sh
# Find out by which name we were called
BASENAME=`basename $0`
case $BASENAME in
erap)
echo "I'm Erap, how are you?";;
asiong)
echo "I'm Erap aka Asiong Salonga, how are you?";;
jose)
echo "I'm Erap aka Jose Velarde, how are you?";;
*)
echo "I'm Erap, anong sabi mo?";;
esac
exit 0
------------<start of erap script>------------
Don't forget to chmod +x erap.
On the same directory where you placed the script, do the following:
ln -s erap asiong
ln -s erap jose
ln -s erap bobo
After that you should have something like:
lrwxrwxrwx 1 guest users 4 May 9 21:22 asiong -> erap
lrwxrwxrwx 1 guest users 4 May 9 21:23 bobo -> erap
-rwxr-xr-x 1 guest users 267 May 9 21:19 erap
lrwxrwxrwx 1 guest users 4 May 9 21:22 jose -> erap
Now execute each one and see the results. This is basically the method that was used
in the programming of modutils.
Regards,
abramos
__________________________________
www.edsamail.com
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]