Top
||
Section Contents
||
Permuted Index
SavaJe OS
1.1.0
source execute a shell script
source file . file
Execute the shell commands in file
. A synonym for source
is
dot (.
).
A common use of shell scripts is to set the
shell variable base
(where the system searches for classes),
then run an application.
For example, the following script
set base=http://chopin/MyApp.jar MyApp
sets base
to a JAR file served by chopin
then runs
the application.
To run this script (assuming it is in the file setbase
),
lsh%source setbase
or, using the timesaving dot (.
) command,
lsh%. setbase