This was noticed in some legacy Java application (jre1.4 on HP-UX).
Parent process (shell script S1) is starting Java process, which on its own is starting child process (shell script S2). Schematically it's: S1 > Java > S2.
NB! Java application connects to Oracle DB using OCI driver.
What is strange here is that process running S1 h...
An application I'm working on doesn't get along well when the environment variables DYLD_FRAMEWORK_PATH and DYLD_LIBRARY_PATH are set but I can't figure out for the life of me where these are being set!
To rule out the possibility that it's something project specific, I've created a new project without any files and added a single new...
Where Linux/Unix environment variables are kept? How can I add my own environment variable and make it persistent, not only within currently running script?
...
On linux, we have LIBRARY_PATH and LD_LIBRARY_PATH environment variables in order for programs to search for libraries. Do we have similar thing on windows? Particularly Windows 7?
Also, I would like to know best practices for DLL use (where to put them, use envs or not, etc.), since I want to work on windows like everyone does, and no...
Whenever I open a Bash shell, my classpath is "someProgram". I know that adding an export entry to ".bashrc" changes my classpath, but I want to know where "someProgram" is being added to the classpath (it's not in ".bashrc").
Is there a way to track down where this is being set, or some typical spots I should be checking besides ".bash...
My Rails app makes use of ImageMagick, but the app fails on trying to execute the ImageMagick command ("identify"). I fixed this issue in development (where I'm running Apache/Passenger) by passing the following environment variables in my Apache config:
SetEnv MAGICK_HOME /opt/local/var/macports/software/ImageMagick/6.5.9-0_0+q16
S...
I have a bash script that I am modifying to accept key=value pairs from stdin. (It is spawned by xinetd.) How can I safely convert those key=value pairs into environment variables for subprocesses?
I plan to only allow keys that begin with a predefined prefix "CMK_", to avoid IFS or any other "dangerous" variable getting set. But the si...
Namely I have:
Environment.SpecialFolder.ApplicationData
Environment.SpecialFolder.CommonApplicationData
Environment.SpecialFolder.LocalApplicationData
I am unclear as to were these point to in Windows XP and/or Windows Vista.
What I found so far is that the ApplicationData points to the ApplicationData Folder for the current user i...
CGI scripts should have access to a list of environment variables set by the web server. What are their names?
...
essentially, we want to keep a set of constants to be used across the rails app and javascript code. For example:
{A:3
B:4
C:5}
We try not to embed rails code in javascript, and we do not want 2 copies of constants.
Thanks!
...
From Java, is it possible to get the complete commandline with all arguments that started the application?
System.getEnv() and System.getProperties() do not appear to contain the values.
...
I need to change thw environment variable Environment.GetEnvironmentVariable("TMP") for a Windows service in .NET 2.0 that is running with its own user account. The server is a Windows Server 2003, SP2. Can anybody tell me how to change the Windows environment variable for that user?
...
I am trying to test the Cybersource 3d party implementation. I was able to get the test files running fine from the command line, which requires that on Linux I export the path to the payment libraries to LD_LIBRARY_PATH.
to try to test this on my server I have created the apache config below
<VirtualHost 127.0.0.1:12345>
AddHandler ...
Basically I am looking for a way to create application data files during setup inside the folder corresponding to:
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
or put another way (for WindowsXP):
C:\Documents and Settings\%username%\Local Settings\Application Data
I tried the solution suggested here, but ...
I'm uploading images in a grails app I'm developing and I want to be able to have an environment variable the determines where these images are. So if I'm working locally it can just pull from /home/MyName/images but once it's in production it will pull from http://images.site.com. How would I do that? I'm assuming i can set up my config...
Dear ladies and sirs.
We use log4net for logging. I am wondering if it is possible to use environment variables when specifying the log level. The motivation is simple - our QA folks will not have to edit the config files, they will just set certain environment variable once.
In short:
We do not want to set the log level in the confi...
Hi,
In my pursuit of a solution to another environment-variable/batch-file related problem, I have once again come across a problem I have visited before (but cannot for the life of me remember how, or even if I solved it).
Say you have two BAT files (or one batch file and the command line). How can one pass an environment variable nam...
I'm running a command line programme as administrator,
but I found that PATH in System variable has higher precedence than in Administrator variable .
Is that true,can someone give some documents on this?
...
I have defined my own environment variable (VERSION) in a .xcconfig file and based my configurations on that as described at http://www.silverchairsolutions.com/blog/2008/03/automating-cocoa-deployments-with-sparkle-and-xcode. My environment variable is indeed expanded in Info.plist but not in my Settings.bundle/Root.plist. PRODUCT_NAME ...
In Ubuntu, I'd like to switch my JAVA_HOME environment variable back and forth between Java 5 and 6.
I open a terminal and type in the following to set the JAVA_HOME environment variable:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
And in that same terminal window, I type the following to check that the environment variable has been...