|
|
Subject:
Computing terminology question
Category: Computers > Programming Asked by: kunkha-ga List Price: $2.00 |
Posted:
22 Jul 2005 04:29 PDT
Expires: 21 Aug 2005 04:29 PDT Question ID: 546535 |
I was at this webpage: http://www.ks.uiuc.edu/Research/namd/mailing_list/namd-l/1250.html I have no ides what is meant by the phrase "source the script." I would like to know what it means to "source the script" and, if it is complicated, I would like to know how to "source the script." |
|
There is no answer at this time. |
|
Subject:
Re: Computing terminology question
From: alwaysshopping-ga on 22 Jul 2005 07:21 PDT |
This term applies to a command built in to some scripting shells, for example the C Shell. When you "source" a script you execute it instead of supplying commands from the standard input (e.g. keyboard). A typical use of the command is when the file that sets up environment variables (e.g. .cshrc) has been changed. The script is "sourced" so that the new values will be available to commands executed in the shell. |
Subject:
Re: Computing terminology question
From: alwaysshopping-ga on 22 Jul 2005 07:22 PDT |
I should add that too "source" a script, you enter the appropriate scripting shell and then type "source <script name>" |
Subject:
Re: Computing terminology question
From: bozo99-ga on 22 Jul 2005 10:29 PDT |
This depends on the shell you are using. For csh (and similar) the command is the word "source": " source the_filename ". For Bourne-like shells the command is a dot: " . the_filename ". An important difference between running the script and sourcing it is that a script that is sourced may set variables and change directory and so on with effects that persist after it is finished in the context it was called from. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |