Questions tagged [env]
221 questions
2
votes
1 answer
passing env variables to fcgi (perl)
I have an apache 2 webserver running with mod_fcgid. CGI scripts are executed by passing some environment variables and then exec'ing a perl program, eg:
index.cgi:
#!/bin/sh
export TEST_VAR=test
exec test.pl
test.pl:
#!/usr/bin/perl
use…

nomercysir
- 21
- 2
2
votes
1 answer
Best way to determine Flash context in AS3?
I want to know, if my Flashapplication is running in a browser or it is tested from within Flash authoring tool (local Flashplayer).
I came up with this one.
var isLocal:Boolean = !ExternalInterface.available ||…

line-o
- 1,885
- 3
- 16
- 33
2
votes
1 answer
How to pass all bash env variables to cron
A given crontab entry gives errors and the reason is that it can not read all env variables from bash. I wonder how could I pass all this info to cron

Open the way
- 26,225
- 51
- 142
- 196
2
votes
5 answers
CoffeeScript in a shell script -- run by Apache (as CGI)
Following the advice here I can get a shell script in JavaScript that runs under node.js and prints a bit of hello world html:
test.cgi
-------
#!/usr/local/bin/node
console.log("Content-Type: text/html;…

Jared Updike
- 7,165
- 8
- 46
- 72
2
votes
2 answers
NodeJS config.json vs process.env for configuartion management
I've come across people using both methods to do config management.
What are the pros and cons of each approach?
If I have a lot of variables that I store in my config object, will I have to set them all one by one in an upstart script before…

Ayush
- 709
- 2
- 8
- 17
2
votes
3 answers
Connection in laravel phpmyadmim
I am doing a project in laravael framework.
I'm trying to open some pages. It is showing an error:
at PDO->__construct('mysql:host=localhost;port=3306;dbname=dbname', 'root', 'phpmyadminpd', array('0', '2', '0', false, '0')) in Connector.php line…

Janani
- 21
- 1
2
votes
1 answer
when we need use sudo python xxx.py or just python xxx.py or xxx.py
I have write a website,what confused me is when i run the website,first i need start the the app,
so there are 3 ways:
sudo python xxx.py
python xxx.py
xxx.py
I didn't clear with how to use each of them,the NO.3 method currently in my computer…

mlzboy
- 14,343
- 23
- 76
- 97
2
votes
1 answer
Creating SOAP Message: NAMESPACE_ERR An attempt is made to create or change an object in a way which is incorrect with regard to namespaces
I'm developing a Web Service client and I hace to generate a code like this one:
…

PredatorSpain
- 31
- 1
- 6
2
votes
1 answer
All env variables end in \r
When I load my environment variables using export $(cat .env | xargs) they all end in with '\r'. Is there a simple way I can fix this? I am using pyvenv if that matters.

Rob
- 3,333
- 5
- 28
- 71
2
votes
1 answer
Chroot syntax in Makefile
I'm trying to debug a Makefile which at face value calls a script trying to chroot into some directory. Then it also does env command.
BCMD= bash
CMD= "/build/toolcrib/prepare_final_tree >crumbs/Final-prep.out 2>&1"
${BCMD} -c "chroot…

Haswell
- 1,573
- 1
- 18
- 45
2
votes
2 answers
What a '-' in TMPDIR do?
I recently saw an example where a command was invoked with the following option passed to env:
TMPDIR="${TMPDIR:-/tmp}"
What does the - in $TMPDIR do? This was for an unspecified version of linux.

pythonic metaphor
- 10,296
- 18
- 68
- 110
2
votes
2 answers
Cloud9 environment variables
I am developing a Rails 4 app on cloud9 (c9.io). When I placed SECRET="geheim" in config file, it works fine. I tried setting an environment variable using
echo "export SECRET=geheim" >> ~/.profile
and then using ENV['SECRET'] in config file, but…

user2725109
- 2,286
- 4
- 27
- 46
2
votes
3 answers
Laravel 5 - Why second parameter of env()
Almost every php files inside config folder has this function here -> env().
This function take 2 parameters like so :
'driver' => env('MAIL_DRIVER', 'smtp')
I know that the first parameter is to get the right line, but what's the meaning of the…

user3038607
- 411
- 3
- 7
- 18
2
votes
2 answers
Why does "/usr/bin/env bash -x" only work in command line?
I am playing with a docker CentOS image, and find executing "/usr/bin/env bash -x" command is OK in terminal:
bash-4.1# /usr/bin/env bash -x
bash-4.1# exit
+ exit
exit
But after writing this command into a script and execute it, it doesn't work,…

Nan Xiao
- 16,671
- 18
- 103
- 164
2
votes
2 answers
No X11 DISPLAY variable was set
I am running Raspbian with the fadecandy server, using vncserver to load an X11 instance and running a java app to drive the fadecandy controlled leds. I need this to load during the boot up process.
In /etc/init.d/ I have a bash script called…

Jerrold Patterson
- 29
- 1
- 2