Hello,
I want to set some environment variables with this script:
ip=$@
echo Remote Computer: $ip
PERLDB_OPTS="CallKomodo=$ip:9000 RemotePort=$ip:9010 PrintRet=0"
export PERLDB_OPTS
PERL5LIB=/opt/komodo
export PERL5LIB
echo PERLDB_OPTS: $PERLDB_OPTS
echo PERL5LIB: $PERL5LIB
But it... (5 Replies)
Hi all,
I am trying to set up some variables in a shell script. The variables contain values of various paths needed to run a java module. The problem is the variables dont seem to be setting at all.
here is what i am trying to do :
JAR_HOME=/home/was5/bdcms/scheduledjobs/lib
export... (6 Replies)
Is it possible to use environment variables within cron jobs. I am using a cron job to run a c program at regular intervals. The C program uses a library and i have set the library path in the LD_LIBRARY_PATH environment variable. But when i ran the job i got the error library not found!! Any... (1 Reply)
Hello All,
I am writing a script to set some environment variables which are required for a particular application. I understand that the environment variables set by Shell script can, at the max, be valid for the session. They will have to be set again once the session is closed and re-opened.... (1 Reply)
this is my first post so Hello,
here is my question
@top level Makefile should not set values for
environment variables FC, CC, FFLAGS (etc) but
use the ones that mpi_make sets.
So as you can see i have to run an mpi program, in fortran and i am supposed to do the above.the program was... (3 Replies)
hi all,
I would appreciate if some one could explain me the difference between setting up the variables as shown below
HOME=${HOME:-"/home/user1"}
HOME=/home/user1 (1 Reply)
#!/bin/bash
if ; then
ASS1_DATA_DIR=./
echo $ASS1_DATA_DIR
export ASS1_DATA_DIR
echo "data dir"
fi
if ; then
ASS1_OUTPUT_DIR=./
export ASS1_OUTPUT_DIR
fi
I want to create a new environment variable ASS1_DATA_DIR and ASS1_OUTPUT_DIR in bash and set them to the current... (4 Replies)
Hi all,
This is my first post here. I need to set up a few environment variables with a shell script. Some are hard-coded, but some should come from other commands or as input from the user. How do I do that?
For example, I need to export a variable as such:
export DISPLAY=127.0.0.1:8.0
... (2 Replies)
Hi,
I have around 10 environment variables in my shell script. i want to set this all in a file and just call that file in my shell script. How can i do that ? Please help. TIA! (6 Replies)
Discussion started by: qwertyu
6 Replies
LEARN ABOUT DEBIAN
slsh
slsh(1) General Commands Manual slsh(1)NAME
slsh -- interperter for S-Lang scripts
SYNOPSIS
slsh [-i init-file] [-g] [-n] [-v] [--help] [--version] [-|file args]
DESCRIPTION
This manual page documents briefly the slsh command. This manual page was written for the Debian distribution because the original program
does not have a manual page.
slsh is an interpreter for scripts written in the S-Lang language.
OPTIONS --help Show summary of options
--version Show slsh version information
-g Compile with debugging code, tracebacks, etc
-n Don't load personal init file
-i init-file
Use this file instead of default
-v Show verbose loading messages
ENVIRONMENT VARIABLES
Upon startup, the program will try to load slsh.rc as follows:
If either SLSH_CONF_DIR or SLSH_LIB_DIR environment variables exist, then look in the corresponding directories for slsh.rc. Otherwise look
in:
$(prefix)/etc (specified in Makefile)
/usr/local/etc/
/usr/local/etc/slsh/
/etc/
/etc/slsh/
The slsh.rc file may load other files from slsh's library directory in the manner described below.
Once slsh.rc is loaded, slsh will load $HOME/.slshrc if present. Finally, it will load the script specified on the command line. If the
name of the script is ``-'', then it will be read from stdin.
When a script loads a file via the built-in ``evalfile'' function or the ``require'' function (autoloaded by slsh.rc), the file is searched
for along the SLSH_PATH as specified in the Makefile. An alternate path may be specified by the SLSH_PATH environment variable.
The search path may be queried and set during run time via set the get_lib_path and set_lib_path functions, e.g.,
set_lib_path ("/home/bill/lib/slsh:/usr/share/slsh");
SEE ALSO
Examples of S-Lang scripts can be found in /usr/share/doc/slsh/examples/.
AUTHOR
This manual page was written by Rafael Laboissiere <rafael@debian.org> for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
slsh(1)