The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how do I start a script in run level 3 in solaris? mokkan SUN Solaris 4 12-04-2007 12:44 PM
need shell script that checks your user id and your permission level yammer UNIX for Dummies Questions & Answers 3 11-19-2007 07:17 PM
Box A's perl script calling box B's shell script new2ss Shell Programming and Scripting 1 09-13-2006 06:17 AM
calling dos2unix on shell script from within the script vino Shell Programming and Scripting 4 04-08-2005 03:38 AM
Script that modifies root level files turbo90awd Shell Programming and Scripting 10 06-19-2003 11:20 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-25-2007
SummitElse SummitElse is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 19
calling a script from a level above where the script resides

is there anyway to call a script that executes a script on the same level from a higher level

i.e.

level1/level2/ kp1script kp2script

kp1script (./kp2)
kp2script (echo "Hi world")

level1/level/2/level3/ ../kp1script
../kp1script: ./kp2script: not found


cheers in advance (the scripts actually contatin menus)

cheers in advance
  #2 (permalink)  
Old 10-25-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Yes, but you would need either to put that directory on the PATH or use the appropriate .. or whatever to point to the correct directory containing kp2script. You could change the PATH and have the change only local to the running of your script of course.
  #3 (permalink)  
Old 10-26-2007
SummitElse SummitElse is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 19
hi porter yeah I understand that but we are trying to avoid using relative paths
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0