General :: Create An Environment Variable With The PRINTER Variable?

Apr 16, 2011

I am supposed to create an environment variable with the PRINTER variable, which should resolve to the word sales. Would the command be like this?: env PRINTER - NAME=SALES (is this the command to create that variable with resolving the word sales to it?)

View 3 Replies


Server :: Script Query - Create A Folder With An Environment Variable?

May 18, 2010

I am busy learning shell scripting, and I managed to get my first few right, but now I am trying to do something that I know how to do in Windows, but not in Linux. Basically, during a file copy, I want to create a new date for each folder on a daily basis to copy backups, in windows the syntax would be "xcopy %systemroot%ackupslah.blah \servernameackups\%date%"in linux I am running a "cp blah.gz /mount/blah" I want to create a folder with the date based on the current date.anyone know how to get the same right in shell script?

View 10 Replies View Related

General :: Where Is The $HOME Environment Variable Set

Apr 17, 2011

I'm looking for the place where $HOME environment variable set. It is after login, to my mind.

I'm using Linux debian 2.6.32-5-686.

View 3 Replies View Related

General :: Set Environment Variable With A Given Script?

Nov 23, 2009

i have to set environment variables , after the installation of intel(R)MKL for linux OS given in intel mkl user guide, which are INCLUDE, LD_LIBRARY_PATH, MANPATH,LIBRARY_PATH, CPATH, FPATH, NLSPATH using the script file which, in my case,is ""How can i set these environment variables?Do i need to set all these variables?

View 2 Replies View Related

General :: Set The PATH Environment Variable?

Apr 25, 2011

set the PATH environment variable?

View 4 Replies View Related

General :: How To Save Environment Variable From Terminal

May 14, 2011

I am trying to save the PATH environment variable from the Terminal running on a Ubuntu system.I typed in the following however it does not get saved.

export PATH=/home/david/Komodo-Edit-6/bin/:$PATH

View 1 Replies View Related

General :: Adding An Environment Variable To Inittab?

Jul 22, 2010

im quite new to Unix stuff Im in need to add a script to be executed, in to /etc/inittab for that i need to get the path to my java installation. I have set the JAVA_HOME env variable already, my question is whether we can use JAVA_HOME in inittab? i mean, are those env variables are crated by the time inittab starts? if so, how can i add the entry

currently im having is like this
pse:5:respawn:su - <username> -c "$JAVA_HOME/other-path/ run"
is there any issue with the syntax?

View 2 Replies View Related

General :: Adjusting The PKG_CONFIG_PATH Environment Variable?

Sep 14, 2010

i ran into a problem while isntalling xine player on fedora 11, i first of all installed its core engine 'xine-lib' successfully with standard prefix! when i run the './configure' for its frontend (xine-ui) it gives this error.

No package 'libxine' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XINE_CFLAGS and XINE_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.

View 4 Replies View Related

General :: Environment Variable And Current Shell

May 24, 2010

I am using Red Hat Linux Enterprise 5. I know the theory that -- using export to set environment variable, the environment variable will apply to current and child environment, but without using export to set environment variable, the environment variable will only apply to the current environment. What is the exact definition of "child environment" and "current environment"? For example,

$ var1=123
$ echo "Hello [$var1]"
The value of var1 (which is 123) is printed in shell, but I think echo is a command invoked by current shell, and it (the echo command) should be a child environment of current shell and the value of var1 should not (because not using export var1=123) impact echo.

View 13 Replies View Related

General :: Set Current Directory As Environment Variable

Jul 10, 2010

How do you set current directory (full path) in an environment variable?

View 10 Replies View Related

General :: Assign Local Variable Values To Global Variable?

Feb 17, 2011

how to assign a local variable value to a global variable....

View 2 Replies View Related

General :: Existence Of USER Environment Variable In The Shell?

Jan 28, 2010

I heard (although I can't find any sources for proof) that the USER environment variable may not be set in a old Unix shells (maybe even some obscure shells as well). What is the probability that it won't be set?

View 2 Replies View Related

General :: Changing The Environment Variable Permanently In Ubuntu 10.10

Apr 30, 2011

I want to make change to environment PATH system wide. Because I have program called "md5". I want to execute it from anywhere (i.e any directory).

My md5 program is located at "/home/ahuq/MappingServer/md5_program". So what I did was to put: "export PATH=$PATH:/home/ahuq/MappingServer/md5_program" in the running SHELL.

This only makes temporary changes and lets me run the "md5" program from anywhere temporarily.

But I want to make this change permanent. So what I did was to put the "PATH=$PATH:/home/ahuq/MappingServer/md5_program" line into the "/etc/environment" file.

This screwed everything up and then for a while I couldn't execute anything from SHELL. I knew the absolute path of "nano" editor and used it to modify the file (i.e. /etc/environment) back to its original condition.

This fixed the problem and now I can run programs like "ls" from the SHELL.

But still I need a way to permanently add the path of "md5" to the environment. How can I do this in Ubuntu 10.10? Which file needs to edited?

Do I just logout or do I have to restart the system to make the changes active?

View 6 Replies View Related

General :: Environment Variable Containing The Current Keyboard Layout?

May 18, 2010

I have two keyboard layouts installed in my system and I need to determine in scripts which one I'm on. What the environment variable contains indicator of current keyboard layout?

Debian GNU/Linux 5.0.4;
GNOME 2.22.3.

View 1 Replies View Related

General :: Use The Value Of One Variable To Generate A Name For Another Variable?

Jul 25, 2010

can i use the value of one variable to generate a name for another variable? for example i want to use the counter from a "do while" loop to name and define a variable each time the loop executes. for example

objectnames1=`ls -a`
objectnames2=`ls -a`

i don't have a script yet but each time through the loop i intend to cd to a particular directory and then define a variable containing a list of each object in that directory as values. for the rest of the script to work, each variable generated has to be unique, and i can't think of a good way to accomplish this.

if using a value from one variable to name another isn't possible, can anyone think of a more elegant solution? i know limited syntax but i'm willing to read up...

View 6 Replies View Related

General :: Sed Substitution Of Variable With A Variable?

Dec 27, 2010

I am trying to alter the character position of residue numbers above 999 in a pdb file.The following script is an attempt to:1) Get all unique pdb residue numbers (in column 5) using awk and assign it to a variable i.2) Loop through all the values in $i and if it is greater than 999, shift that number one character to the right using sed.However, the script only manages to alter the final residue numberCould anyone please advise how I can loop through all values in $i and shift it one character to the right?

# Script to alter position of residue number in pdb file for resid above 999
i=$(awk '{print $5}' wt-test.pdb | uniq)


View 6 Replies View Related

Debian :: Cannot Add Environment Variable

Apr 27, 2015

I'm trying to add 2 new environment variables (Debian . I have created a "/etc/profile.d/" file and in it I have added these lines (and just for the record, I've also tried adding those line to the profile file with the same results as explained below).

Code: Select allexport XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/X11/app-defaults

export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/sys/os/glnxa64

The first variable "XAPPLRESDIR" is added just fine (I check by doing echo $XAPPLRESDIR). The second variable is not added. Here's what I discovered though, if I change the variable name to LD_LIBRARY_PATK (I change the word "path" into something else) then it works just fine... So how am I supposed to add this variable? I need it to be named just that...

View 1 Replies View Related

Ubuntu :: How To Set Environment Variable

Jun 28, 2010

Well on a Rsps forum it says that the reason i keep crashing in the client is cause my Envieronment Variable isnt set for Java. i was wondering how to do this.please make it deatailed since i am new to ubuntu and i dont know most of the things like usr/java

View 9 Replies View Related

Software :: How To Set Environment Variable

Mar 8, 2011

how to set environment variable as i am getting following message during ./configure.

checking for GtkGLExt - version >= 1.0.0...
*** pkg-config cannot find gtkglext-1.0 >= 1.0.0
*** Set the environment variable PKG_CONFIG_PATH to point to the correct


View 18 Replies View Related

Programming :: Set Environment Variable Is Tcl ?

Apr 22, 2011

How are environment variable set in tcl? I tried "set $env(MYVAR) xxxx" but it didn't work.

View 1 Replies View Related

Slackware :: Environment Variable Being Set Twice?

Jul 25, 2010

I'm setting my CLASSPATH in /etc/profile.d/ In a login shelleverything is fine. In an xterm window, the CLASSPATH consists of two of every intended entry.In I am doing aCode:export CLASSPATH=$CLASSPATH:/many/paths/to/jarsSo I'm guessing this is getting run twice in the xterm case. Can someone explain what's going on here and what I should do to remedy this?

View 12 Replies View Related

Ubuntu :: Set The Environment Variable?

Feb 4, 2010

I'm trying to set the environment variable. java_home and path.

I used the following instruction:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-
and to check :
echo "java_home=$JAVA_HOME"
and every thing is ok.

But since i close the terminal every thing is deleted.

View 13 Replies View Related

Ubuntu :: How To Set A Environment Variable For Gnome

Jun 19, 2010

I'm trying to configure subclipse with JAVAHL for ganymede. I have everything installed and the right version of the JAVAHL.

I have seen that a lot of people uses java.library.path in the eclipse.ini file to set it up or just write a script for launching eclipse.

I have read about the .gnomerc file but i couldn't find it or create one and make it work. I'm using a 9.04 ubuntu.. is there anyway to configure an environment variable for gnome? What i want is just click on the shotcut and have it working, not having to run a script or all that stuff.

View 1 Replies View Related

Ubuntu :: TERM Environment Variable Not Set?

Oct 10, 2010

I just upgraded to 10.10, I use Tilda (terminal client) on my desktop but now when I type "clear" it says "TERM environment variable not set." instead of clearing the screen. Also commands like "tree" does not show folders and iles in color like they did before upgrading.

View 4 Replies View Related

Ubuntu :: PATH Environment Variable?

Oct 20, 2010

I have just installed Ubuntu onto my machine and my question is if it automatically comes with the PATH environment variable?If so, how do I add something such as python.exe to the PATH environment variable?

View 2 Replies View Related

Ubuntu :: Set Environment Variable In A Launcher?

Dec 1, 2010

I am trying to create a launcher which runs virtual box from a custom config directory. For this I have to set an environment variable first then call VirtualBox command. From terminal it looks like:

helena@mint ~ $ export VBOX_USER_HOME=/mnt/shared/VirtualBox/
helena@mint ~ $ nohup VirtualBox > /dev/null 2> /dev/null &

If I have to create a shortcut for this, I am not sure how to define variable & call the command in a single command. There are some examples on:


"DISPLAY=:0 xterm"

but when I try this, it wont work. My test.Desktop entry (I have started x on :1):

[Desktop Entry]


View 2 Replies View Related

Programming :: [C] The Environment Variable 'environ'?

Jul 17, 2011

In C, there's a global variable 'environ'. With the help of linux manual, I know it's defined in <unistd.h>. But the fowllowing program is also right without <unistd.h>:

#include <stdio.h>
extern char **environ;


View 3 Replies View Related

Programming :: Makefile - No CXX Environment Variable

Jan 6, 2010

When I put a "test" target in my Makefile containing
@echo "CXX= $(CXX)"
it tells me "CXX= g++".
But I have nothing in the Makefile assigning any value to CXX, and as far as I can tell I have no CXX environment variable (no "CXX" appears when I run the shell command "env", and "echo $CXX" returns a blank line. So where's the g++ value coming from. Is this just built into Gnu Make, or is there a configuration file for make somewhere?

View 2 Replies View Related

General :: Create Aliases With Echoing Text Into The Variable?

Apr 29, 2011

For example if you want to create an alias in Linux with a message echoed into the variable would the following command be; alias hello="(echo)"Hello." "? I'm trying to learn some environment variables and aliases.

View 4 Replies View Related

Programming :: Bash - Read Content Of File To Variable And Use This Variable In For Loop ?

Aug 21, 2009

I'm trying to read content of file to variable and use this variable in for loop. The problem is, when I have c++ comment style in file - /*. Spaces in line are also interpreted as separated lines.

For example:


Changing $files to "$files" eliminate these problems but causes that whole content of variable is treated as one string (one execution of loop).

View 6 Replies View Related

Copyrights 2005-15, All rights reserved