05-30-2008
Setting environment variable on a remote solaris machine using shell script
Hi,
I am trying to set environment variable on a remote machine. I want to do it by running a shell script
Here's what I am doin
rsh <remote-hostname> -l root "cd /opt/newclient; . ./setp.sh"
In setp.sh, I have
#############################
cd ../newlib;
export LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/java/jre/lib/i386/client:`pwd`
cd ../newclient
#############################
Output I am getting is
sh: LD_LIBRARY_PATH=::/usr/lib:/usr/java/jre/lib/i386/client:/opt/newlib: is not an identifier
Script is fine when I ran on a remote machine.
. ./setp.sh
Can someone what's wrong with it?
Thanks,
Sundeep
Last edited by eamani_sun; 05-30-2008 at 06:19 PM..
10 More Discussions You Might Find Interesting
1. Programming
Hi to all...
I'm currently running a C++ program in Unix environment and it is dependent to a Unix environment variable with a date value.
ex: echo $DateToday
20060403
I want to change that date in my C++ program, changing the value date to 20061120 and revert back to original... (6 Replies)
Discussion started by: d3ck_tm
6 Replies
2. Programming
Hi,
I already have one CPP program which invokes the C program.And the C program contains whole function definitions..!This is a working program..I have to enable the logs in both CPP as well as in the C program ..!So I am reading the enviornmental variable log path from the CPP and doing the... (2 Replies)
Discussion started by: Kattoor
2 Replies
3. Shell Programming and Scripting
Hi All,
I'm trying to write an menu driven program to automate some functions which involve loging to multiple hosts. The hosts can differ for every use, so I thought I would use an config file to get the hostnames. Now I need to set those values in the config file to environment variable to... (6 Replies)
Discussion started by: arun_maffy
6 Replies
4. Shell Programming and Scripting
Hi All,
i have two machines like x and y . my requirement is i should connect to machine Y from x through ssh connection . and do some operation such as copy and move and delete files in Y machine .
i tried with this code but it is doing in machine x only . and i need to exit from Y when... (1 Reply)
Discussion started by: rateeshkumar
1 Replies
5. Shell Programming and Scripting
Hi all,
I am fairly new to unix scripting and will like to know how to dynamically set the name of an environment variable to be used.
We have a .env file where we defined the names and locations of data files, trigger files, directories .... etc
Example of variables defined in .env... (4 Replies)
Discussion started by: Morelia
4 Replies
6. UNIX for Dummies Questions & Answers
how to use ssh to run shell script on a remote machine?
ssh user@remote sh ./script.unx
i ran the above command
./script.unx HAS NOHUP COMMAND IN ITS BODY, I AM GETTING ERROR AS NOHUP NOT FOUND...
i tried to run that script from remote server, its working fine
do ineed to set... (6 Replies)
Discussion started by: only4satish
6 Replies
7. UNIX for Dummies Questions & Answers
I want to set a enviroment variable
VDC_DIR to a particular directory.
I am doing it as
export VDC_DIR=/abc
it gets set but when i logout and do relogin than its not there.
one way could be setting it in .profile file.
but i have seen it on another box where it is not present in... (2 Replies)
Discussion started by: Jcpratap
2 Replies
8. OS X (Apple)
I'm in a situation where I am executing a shell script(Bash) on another machine remotely using ssh, and for various reasons sometimes need to quit it and restart it. The shell script being run does many different things, so its hard to know what process to kill on the remote machine, and even if I... (2 Replies)
Discussion started by: TheDrizzle
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
We have 2 servers A and B.
B is having a sctipt called b.sh in path /home/dev/scripts.
Now my requirement is i want to execute b.sh from server A.
Kindly help me. (3 Replies)
Discussion started by: Girish19
3 Replies
10. Shell Programming and Scripting
I want to execute a shell script(set of commands) on remote machine and that script takes input from text file(local machine). Please refer below:
ssh user@hostname 'bash -s'< ./test.sh file.txt
But i got the error file.txt doesn't exist.
Can anyone help me on this.
Content of test.sh:
... (2 Replies)
Discussion started by: manishtri88
2 Replies
LEARN ABOUT DEBIAN
sunflow
SUNFLOW(1) SUNFLOW DOCUMENTATION SUNFLOW(1)
NAME
sunflow - rendering system for photo-realistic image synthesis
SYNOPSIS
sunflow [option(s)] file(s)
DESCRIPTION
sunflow is an open source rendering system for photo-realistic image synthesis. It is written in Java and built around a flexible ray
tracing core and an extensible object-oriented design. It was created as a framework for experimenting with global illumination algorithms
and new surface shading models.
GENERAL OPTIONS
A summary of the options can be obtained by using one of the following options:
-h, -help
Display the list of available commands
PERFORMANCES
Sunflow will run considerably faster with the so called server VM (Virtual Machine). This server VM is part of Java, but it's not included
in the standard (JRE) installation of Java. The server VM starts up more slowly and uses more memory than the standard VM, but it runs a
lot faster in many cases.
Sunflow's built-in realtime raytracing benchmark (-rtbench) for example runs more than twice as fast with the server VM (exact speedup
depends on your hardware).
The easiest way to get the server VM is by installing the Java Development Kit (JDK).
On Debian, it is possible to install different JVM at the same time, amongst which: gij-4.2 (main), openjdk-6-jre (main), sun-java5-jre
(non-free), sun-java6-jre (non-free). To change the java link from one to another, use (with root privileges):
"update-alternatives --config java"
A pretty good choice should be openjdk-6-jre.
See also the "CONFIGURATION FILES" section.
SUGGESTED OPTIONS
As explained above, the following options can be used to obtain a performance gain, but depend on JVM used:
-server
Use the server virtual machine. The JDK matching the selected JVM has to be installed for this option to actually work, e.g.
sun-java5-jdk (non-free). A warning will be displayed otherwise, and this option ignored.
-XmxMEM
Use a memory upper limit of MEM instead of the default (probably 64M). Example of valid values: 512M, 1G.
Those options are best set through the SUNFLOW_JAVA_OPTIONS environment variable, or stored in the configuration files.
CONFIGURATION FILES
To allow flexible configuration, the sunflow wrapper sources two configuration files: /etc/sunflowrc and ~/.sunflowrc, in this order.
The syntax is simple "export KEY=VALUE". Lines beginning with a sharp sign are ignored.
The following options are supported:
SUNFLOW_JAVA
The java virtual machine to use. It's then possible to have e.g. a system-wide java alternative pointing to /usr/bin/gij-4.2, while
sunflow uses a different JVM, e.g. /usr/lib/jvm/java-1.5.0-sun-1.5.0.12/bin/java.
If not set (the default), java will be called, meaning the system-wide alternative will be used.
SUNFLOW_JAVA_OPTIONS
Those are the options to be passed to the java interpreter, see above for examples.
SUNFLOW_OPTIONS
The list of options to pass to sunflow automatically to avoid repeating them on each invokation of sunflow. Quotation marks are needed
if more than one option is specified.
If not set (the default), no option is passed to sunflow.
SEE ALSO
/usr/share/doc/sunflow/README.Debian
AUTHOR
Sunflow was written by Christopher Kulla <ckulla@gmail.com>.
This manual page was written by Cyril Brulebois <kibi@debian.org>, for the Debian project (and may be used by others). It is licensed under
the same terms as the package itself.
0.07.2.svn396 2011-08-07 SUNFLOW(1)