![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| export issue | ravi raj kumar | Shell Programming and Scripting | 2 | 02-19-2008 04:53 AM |
| export??? | Justinkase | Shell Programming and Scripting | 1 | 12-03-2007 02:32 PM |
| Mount Export | AIXdumb455 | UNIX for Dummies Questions & Answers | 1 | 06-20-2006 12:08 AM |
| confusion with export | kdipankar | Shell Programming and Scripting | 1 | 05-11-2006 02:07 AM |
| difference between set and export | shriashishpatil | UNIX for Dummies Questions & Answers | 1 | 02-22-2006 09:28 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi
I need to export some directpry path like below: var1=/<>/<>/<> export var1 This is my basic idea. I tried export var1=/<>/<>/<> after executing this in a shell i did an echo of the var1. But nothing happened. Can you please help me with this. I need to srite a script to export multiple directory files.. Thanks in advance JS |
| Forum Sponsor | ||
|
|
|
|||
|
Hi Vino,
Thanks Yes . I have done that in a shell script. The below script got executed successfuly i have the following in 1.sh export var1=/<>/<>/<> export var2=/<>/<>/<> ./2.sh And i have the following in 2.sh echo $var1 when i run 1.sh i get the echo run But wat i wanted was vi 1.sh export var1=/<>/<>/<> export var2=/<>/<>/<> after i run the above script if i give aecho of var1 then it sholud give me the dir path But this doesnot work. It looks like the exporting is available to only the subscripts and once we come out of 1.sh(in the secondcase) the effect of export is lost . Thanks in advance |