The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
How to set the File Paths for Inputs and Outputs
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to set the File Paths for Inputs and Outputs
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
10-31-2006
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,124
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.
Perderabo
View Public Profile
Find all posts by Perderabo
Find Perderabo's past nominations received
Find Perderabo's present nominations given