The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-31-2006
Perderabo's Avatar
Perderabo Perderabo is offline
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,354
In ksh, create one file called set_up_paths with two lines:
inputpath=/some/path
outputpath=/some/other/path

Then each script will source the file with:
. /home/project/set_up_paths
and then each script just uses the variables instead of the hard coded paths.
Reply With Quote