Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Setting env variables using script Post 302324892 by vgersh99 on Friday 12th of June 2009 06:38:08 AM
Old 06-12-2009
Code:
#!/bin/sh -n
set JAVA_HOME='/scratch/software/jdk1.5.0_11'
set PATH=$PATH':'$JAVA_HOME'/bin'

Why exactly do you have quotes?
Why do you have '-n'?
 

10 More Discussions You Might Find Interesting

1. Solaris

setting env

I am trying to set up my compiler, but when I go to look for gcc it not found but I get a message that stayed (/usr/oasys/bin) and when I go into the dir to set my env the following is type cp : cannot creat //pref/.environ: no such file or directory and I input ./setenv PATH=... (3 Replies)
Discussion started by: alsande
3 Replies

2. Shell Programming and Scripting

Some env setting is causing the script not to work ?

Not sure what has changed in the Unix environment. The following script which was working is now not working. #!/usr/bin/ksh # ----------------------------------------------------------------------------- # File: monitor_db.sh # #... (1 Reply)
Discussion started by: uuser
1 Replies

3. AIX

edit env. setting

hi eveybody, i m trying to set acl using acledit command in AIX box but wat im gettung is 3002-100 acledit: EDITOR environment variable not set can anyone help me out how 2 set editor.................... thanks in advance (4 Replies)
Discussion started by: rrlog
4 Replies

4. Shell Programming and Scripting

Issue with a Unix script Env setting

Hi, I have the below script #------------------------------------------------------------------------------ #Set up environment variables #------------------------------------------------------------------------------ SCRIPTS_DIR=/remedy/scripts/ServerVolumeBilling... (3 Replies)
Discussion started by: anilvaranasi_02
3 Replies

5. Emergency UNIX and Linux Support

Problem setting environment variables from script

Hi all! I know that environment variables can be set on the .bashrc file, but I need to set them from a sh script. I saw a lot of websites that teach this but it doesn't work for me. #!/bin/sh DEKTOP=$DESKTOP=:/home/rrodrigues/Desktop export DESKTOP if I do echo $DESKTOP returns me... (10 Replies)
Discussion started by: ruben.rodrigues
10 Replies

6. Shell Programming and Scripting

tcsh env setting using shell script

Hi All, I have made a file file usercreate.sh & it has to run in tcsh env & needs some path to be set. my script is as below. ########################## #!/bin/csh setenv PATH "/usr/lib/java/class" setenv LD_LIBRARAY_PATH ########################### but when i am ruuning my script... (1 Reply)
Discussion started by: ajaincv
1 Replies

7. Shell Programming and Scripting

Env variables in script

Hi All, I have script and it's hardcoded the script ca invoke in user home dir and logs will be redirected to home dir of user. how to make the same script will be invoke from /usr/bin with out chg the logs and other functions path from /user/homedir . code is below: pls check how to... (1 Reply)
Discussion started by: saku
1 Replies

8. Shell Programming and Scripting

Shell Script for Setting Env Variables

Hello All. Good Afternoon. I need one small help regarding setting of env variables for a particular host by getting it from the DB. For ex : 1. I am using LOCALHOST. 2. When I run a ./hostset.sh it should pick up the Oracle home details from associated DB and set it. Please... (1 Reply)
Discussion started by: PavanPatil
1 Replies

9. Shell Programming and Scripting

Setting ENV variables in PERL

I have perl script and in the first line we are invoking .sh script to set ENV variables. e..g eval '. $envfile; exec $PERL -S $0 "$@"' I want to change some of the env variables while the program is running and I am settging it like this .. $ENV{ORACLE_HOME}=trim($oraclehome);... (1 Reply)
Discussion started by: talashil
1 Replies

10. Shell Programming and Scripting

'Dynamic' setting of variables in bash script

Hi all, I want to dynamically set variables in a bash script. I made a naive attempt in a while loop that hopefully can clarify the idea. n=0; echo "$lst" | while read p; do n=$(($n+1)); p"$n"="$p"; done The error message is: bash: p1=line1: command not found bash: p2=line2: command... (8 Replies)
Discussion started by: jeppe83
8 Replies
SIMPLYHTML(1)						      General Commands Manual						     SIMPLYHTML(1)

NAME
simplyhtml -- A Java editor based on HTML and CSS. SYNOPSIS
simplyhtml [no_options] DESCRIPTION
This manual page documents briefly the simplyhtml command. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has online documentation (see Help menu in SimplyHTML). Project Description With project SimplyHTML an application is built for working with text documents. Text documents are stored in HTML and CSS format, but the application is meant as a word processor rather than a code editor or web site builder. Open to the maximum SimplyHTML is built with the aim to document as much of its functionality and usage as possible. The application is written in Java and distributed with full source codes. By using Java, HTML, CSS and PDF all parts of the project are 100% platform independent and can be used on almost any machine. Extensive documentation Source codes are commented in Javadoc format and additional inline comments. The sources are created with good legibility and structure in mind. In addition, an extensive tutorial is delivered covering both usage of the application and its internals. The tutorial is available in JavaHelp format and can be used as online help out of SimplyHTML. Or it can be read with a plain web browser. A PDF version of the tutorial is avalable too. Why another HTML editor? SimplyHTML is not an HTML editor in first place. It is a text processing application being based on HTML and CSS files. Although it has a simple HTML editor built in as well, the application focuses on text processing rather than web page creation. SimplyHTML tries to distinguish from comparable applications by combining simplicity, ease of use and transparency for both users and developers. OPTIONS
This program does not have any option. Just start it! ENVIRONMENT VARIABLES
DEBUG If this environment variable is set, SimplyHTML gives more information on how it finds its different elements, as well as some other information. JAVACMD Default value for the java virtual machine (the java command). JAVA_BINDIR If $JAVACMD is not set, the java virtual machine is searched under $JAVA_BINDIR/java. JAVA_HOME If $JAVACMD and $JAVA_BINDIR are not set, the java virtual machine is searched under $JAVA_HOME/bin/java. PATH If all $JAVA... environment variables fail, the java virtual machine command (java) is searched in the $PATH (with which). CLASSPATH ADD_JARS The $CLASSPATH variable also lets one specify additional jars, which is good, if you want to add a new Look&Feel jar (the motif one is so ugly...). Alternatively, the content of $ADD_JARS will be prepended to $CLASSPATH. FILES
/usr/bin/java If all searches through environment variables fail, the java virtual machine is expected to be /usr/bin/java; if not, simplyhtml exits with an error. SEE ALSO
The online documentation under http://simplyhtml.sf.net/, especially the Linux related one under the Wiki page link http://simply- html.sourceforge.net/wiki/index.php/SimplyHTML_on_Linux. AUTHOR
This manual page was written by Eric Lavarde deb@zorglub.s.bawue.de 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. SIMPLYHTML(1)
All times are GMT -4. The time now is 02:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy