LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2004, 06:36 AM   #1
Skills
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Rep: Reputation: 0
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!

Last edited by Skills; 09-30-2004 at 06:49 AM.
 
Old 09-30-2004, 07:28 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
http://www.ss64.com/bash/
 
Old 09-30-2004, 12:35 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux commands zexter Linux - Newbie 5 11-04-2004 03:37 PM
linux commands help kyborg Linux - Newbie 4 09-28-2004 02:31 AM
Linux commands Delmarc Linux - Newbie 9 10-22-2003 11:39 PM
Linux commands Shikha Linux - General 3 11-27-2002 10:40 AM
Linux Commands AMDPwred Linux - General 23 01-11-2002 01:23 PM


All times are GMT -5. The time now is 06:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration