![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing a variable from a child script back to the parent | Andy82 | Shell Programming and Scripting | 3 | 05-26-2008 10:52 PM |
| Killing parent shells from subshells (KSH) | rockysfr | Shell Programming and Scripting | 4 | 06-28-2007 08:53 PM |
| Environment Variable Parent PID | scotbuff | Shell Programming and Scripting | 1 | 02-12-2007 01:25 PM |
| How to pass CSH variables up to the parent? | ElCaito | Shell Programming and Scripting | 0 | 11-30-2006 02:30 AM |
| Validating variables in shells script | DeepakXavier | Shell Programming and Scripting | 1 | 09-23-2005 11:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Thanks for the response.
I use Bash, but others have written a lot of scripts in tcsh. These tcsh set a lot of different environment variables that are used to set paths, tool licenses, etc.... So, for example, if i'm in Bash, I want to run a script called 'test.csh' that contains the single line: setenv PROJ_HOME /proj/myproj How do I get $PROJ_HOME to be seen from Bash? |
|
||||
|
Got it
If I am in Bash, I have a C-shell script I want to run that sets an environment variable that I want, I can do this:
The file 'cshwrap' contains the line: exec /bin/csh -c "source $1; exec /bin/bash" Then I can just do: . cshwrap cshfilename |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|