Advertisement

04.16.2008 at 02:13AM PDT, ID: 23326372
[x]
Attachment Details

When a wrapper KSH script is calling another script, I need that script to know what directory it is executed from

Asked by london_mccourt in Linux, Unix Operating Systems

Tags:

I have a MAIN KSH script which calls several other scripts.  I want the scripts that are called to workout dynamiclly where they are located in the file system.

When I use something like dirname $0 in scripts which are called they only return the location where the MAIN script was executed.

This needs to work for Solaris, AIX and Linux (preferably in the KSH shell)

Thanks in advance and please do ask questions.Start Free Trial
[+][-]04.16.2008 at 02:25AM PDT, ID: 21365974

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 02:26AM PDT, ID: 21365977

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 03:12AM PDT, ID: 21366166

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 03:21AM PDT, ID: 21366189

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 04:13AM PDT, ID: 21366431

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 04:44AM PDT, ID: 21366613

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 04:49AM PDT, ID: 21366651

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 02:02PM PDT, ID: 21371933

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Unix Operating Systems
Tags: unix
Sign Up Now!
Solution Provided By: it4soho
Participating Experts: 3
Solution Grade: B
 
 
[+][-]04.16.2008 at 03:55PM PDT, ID: 21372728

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628