![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change Directory | vskr72 | UNIX for Dummies Questions & Answers | 2 | 05-26-2008 03:50 AM |
| Change directory in a shell script | laxmi | Linux | 12 | 01-17-2008 08:07 AM |
| change directory using shell script | laxmi | Shell Programming and Scripting | 0 | 01-17-2008 07:12 AM |
| Change of directory thru script | shiningram | Shell Programming and Scripting | 4 | 03-29-2007 04:30 AM |
| change directory | mkan | Shell Programming and Scripting | 2 | 02-26-2005 04:55 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Change Directory via a script?
I would like to have a script that would change my current working directory. However, any time I execute a 'cd' command in a script, it holds only for the life of that script -- the working directory on exit is the same as when the script was initiated. Is it possible to have the script return with a new working directory set by the script?
In general, the only way I know of to change the environment of a shell by executing a script is the export of variables. Is there any other? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|