Questions tagged [environment-variables]

Environment variables are configuration options that can be set in a shell or other similar environments. All programs started from within the shell can read them and configure themselves.

Environment variables are key-value-pair configuration options like KEY=valueor FOO=bar. Environment variables allow you to configure a program before it gets executed and without the need to store these variables in proprietary configuration files.

They are present on all POSIX systems (Unix, Linux, BSD, Mac OS, DOS, Windows, ...). Environment variables can be set by any shell and read by nearly any programming language.

Some programming languages allow you to set Environment variables, but they only persist within the current process. You can't set them to be visible by the calling shell. So they are not useful for inter-process communication.

410 questions
1
vote
1 answer

Wildfly 10 not detecting environmental variable when run as a service in ubuntu

I have an environmental variable say APP_PROPERTIES pointing to /etc/wildfly/app.properties. When I run wildfly from console using standalone.sh it is taking the properties from the environmental variable, but when I run wildfly as a service, it is…
John Doe
  • 111
  • 3
1
vote
1 answer

What PERL env vars need to be set for a local install?

I'm running Centos 7.2, which has Perl 5.16 by default. Some software one of my users has requested requires at least Perl 5.18, with a preference for 5.22. I've installed 5.24 in /opt/perl/5.24 using: ./Configure -des -Dprefix=/opt/perl/5.24…
datakid
  • 349
  • 4
  • 17
1
vote
1 answer

s6 supervisor: variable set with s6-envdir can't be used

I'm trying to wrap my head around s6 supervisor suite. I've figured out run and log but I'm stuck with s6-envdir and I'm not sure how do I use it. I see that environment variable gets set, but I can't access it. To illustrate: # According to the…
Roman Grazhdan
  • 334
  • 3
  • 15
1
vote
1 answer

package org.json does not exist

I downloaded the JSON library for Java from Maven Repo and installed the .JAR file at the Java library directory on UBuntu 14.04. I tried compile a simple JAVA snippet for JSON parsing, but the compiler (javac) is telling me that the "org.json"…
ivanleoncz
  • 1,643
  • 6
  • 19
  • 32
1
vote
1 answer

robocopy with environment variable will cause 0x10

I tried this on command line and it will work correctly robocopy /mir /copy:DAT /mot:30 "D:\Source File\file" "E:\Target Directory\backup %DATE:/=-% %time::=-%" /xd "D:\Source File\file\excluded" But after I create a schedule task to run it, I got…
zer09
  • 133
  • 4
1
vote
1 answer

Nginx and Gunicorn 'err_conn_refused', but nginx not logging error

I've been playing around with Django Cookie Cutter for local projects, and wanted to put it on my DO Droplet as a semi-production staging environment. The server is set up with Nginx reverse proxying to a variety of projects, some served with…
Withnail
  • 111
  • 6
1
vote
1 answer

Switching library paths in python virtualenv dynamically

There are two versions of Python that can be installed on RHEL 6.7, as many obviously know. Yum needs 2.6, and other programs for example Graphite need 2.7 After digging into it, I see that even when I have a shell spawned or started with scl enable…
Bob R
  • 111
  • 1
1
vote
0 answers

Edit apache environment path in OS X 10.10 Server

My phpinfo displays that the Environment Path for Apache is: /usr/bin:/bin:/usr/sbin:/sbin I would like to add: /opt/local/bin/ I'm using OS X 10.10 Server with the Website functionality of the Server.app
1
vote
2 answers

Kubernetes - Specify env_file

We are using Kubernetes v1.1.0-beta and I am curious if Kubernetes supports env_file, like Docker Compose? On Pod/ReplicationController creation it would read in the file specified by env_file and set the variables on that pod. Is this a thing or…
four43
  • 2,765
  • 2
  • 16
  • 17
1
vote
1 answer

Server 2012 Environment Variables not properly resolving

I've got a Server 2012 R2 server with the RDS roles installed. When attempting to add a new app I'm getting told that the server 'isn't online', despite the fact I am on that same server and am able to launch other applications. I've narrowed it…
Patrick
  • 1,280
  • 1
  • 15
  • 36
1
vote
1 answer

Apache environment variables for CGI not setting

I am trying to set my environment variables for the Apache webserver as it is not the correct Perl package. I followed the recommendation of one of the answers on Server Fault for updating the httpd file and adding the environment variables and it…
BV45
  • 111
  • 3
1
vote
1 answer

Cannot Restart Laravel Application After Updating OpenShift Environment Variables

I started up a new Laravel 5.0 Quick Start at OpenShift. The default laravel home page and auth pages worked just fine. I changed the OpenShift environment variables as follows: > rhc env set APP_DEBUG=true > rhc env set APP_ENV=development Note…
Trevor Reid
  • 113
  • 6
1
vote
0 answers

AWS service to expose key/value pairs to EC2 instances

Is there a centralized AWS service to expose key/value pairs to EC2 instances easily? I'd prefer a way that either exposes as a https endpoint, or injects them into environment variables without requiring using the aws-sdk.
Justin
  • 5,328
  • 19
  • 64
  • 84
1
vote
1 answer

environment variable clientname scope on terminal server

I have a script that needs the CLIENTNAME environment variable, it runs on a terminal server. I have a batch file for testing that contains: set CLIENTNAME; pause If I RDP as an admin: If I open a command prompt, run the script, it shows the…
1
vote
0 answers

libexecdir in systemd .service file?

I'm deploying something to machines (internally, not for public consumption) using RPMs. Now, in RPM .spec files there's the %_libexecdir variable. The package deploys a service binary in that location. How do I have that path automatically be used…
Display Name
  • 761
  • 1
  • 8
  • 13