LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Commands in linux (https://www.linuxquestions.org/questions/linux-newbie-8/commands-in-linux-237012/)

Skills 09-30-2004 05:36 AM

Script questions
 
Hi.

Whats the command for showing which catalog a script is running/executed from and how do I get the name of the script which is executed?

I need to know this because i want it to show in a script I am making.

Thx for all help!

320mb 09-30-2004 06:28 AM

http://www.ss64.com/bash/

chrism01 09-30-2004 11:35 AM

echo $0
will show the name of the script. I don't understand the rest of your qn.... but these links may be helpful:
http://www.icon.co.za/~psheer/book/index.html.gz
http://freeos.com/guides/lsst/


All times are GMT -5. The time now is 01:09 PM.