The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
running cd from a script
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
running cd from a script
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
03-08-2007
ahmedwaseem2000
Registered User
Join Date: Aug 2005
Location: Bangalore
Posts: 206
. is used run the script in the same process. export works when you use the . before the script. here is an example:
Code:
$$ cat try . ./test echo $TEST $$ cat test export TEST=1 $$ ./try 1
ahmedwaseem2000
View Public Profile
Find all posts by ahmedwaseem2000