Questions tagged [env]

221 questions
0
votes
1 answer

Symfony2 - The file config_.yml does not exist

I'm trying to clean my prod cache on symfony2 (php app/console cache:clear --env-prod), and I get the following error : [InvalidArgumentException] The file "/var/www/vhosts/ns21206.ovh.net/citydom/app/config/config_.yml" does not exist. In my…
Nicorr
  • 724
  • 6
  • 22
0
votes
1 answer

_ENV & classes in Lua are not being compatible

_ENV currently hates using classes. I'm attempting to create a Latin kind of Lua, and some things can't precisely be made with _ENV but it's a lot more efficient. setfenv was being uncooperative as well. The subsequent code keeps returning the old…
cygorx
  • 228
  • 1
  • 2
  • 19
0
votes
1 answer

OS Mountain LION PHP Environment Variable

I have freshly installed Mac OS 10.8 Mountain Lion and I have noticed that the PHP version the system is using is not the one associated to MAMP. I used to modify my PATH variable to point my OS to use a different BIN folder for PHP but I just cant…
MightyMouse
  • 351
  • 1
  • 3
  • 12
0
votes
1 answer

how to replace current process without shell expansion, passing complete ARGV array

What's the simple equivalent of a Bash exec $0 $* in Ruby? http://www.ruby-doc.org/core-1.9.3/Kernel.html#method-i-exec EDIT Part of the answer seems to be: exec( "/bin/ls", *ARGV) # credits:…
Marcos
  • 4,796
  • 5
  • 40
  • 64
0
votes
1 answer

How to invoke env from eLisp and escape the path to the target program properly?

What I'm trying to do is as follows: (let ((pj-path (concat src haxe-project-generator))) (when (file-exists-p pj-path) (shell-command (concat "env " (haxe-build-env-vars ) (format…
user797257
-1
votes
1 answer

Meteor: How to pass a value to a Meteor.settings variable from terminal?

Here is a code I have in my serveur directory in a file called main.js: if (Meteor.isServer) { Meteor.startup(function() { return Meteor.Mandrill.config({ username: Meteor.settings.username_mail, key:…
Antoine
  • 559
  • 8
  • 21
-1
votes
2 answers

env command shows 3 times same path

When i run env it shows 3 times /usr/bin under PATH . Same for every path under PATH title. For example - my scala bin directory shows 3 times . However, in my .bash_profile, it is written just one time . Also its not in .bashrc also. I need to…
Chandra kant
  • 1,554
  • 1
  • 11
  • 14
-2
votes
1 answer

Set $PATH's priority

I have set the environment $PATH in the .bashrc file for node and npm to be in /home/username/bin/. When i check with which node for instance it points in the right place, that being /home/username/bin/node , YET when i try to node -v or node i get…
Deck Pope
  • 231
  • 3
  • 10
-2
votes
3 answers

How to create a file in the root dir with perl?

I have an error with perl while trying to CREATE a file called .envfile in the root dir / (only for UNIX). Permission denied, which is understood. But, is there a way to write this file? I need to do it without any modules, just with a built-in…
Arsenii
  • 655
  • 1
  • 8
  • 20
-2
votes
1 answer

How to get the terminal type with empty env

I'ld like to know if there any way to get the type of the terminal but get env("TERM"). tgetent(NULL, getenv("TERM")); But if i execute my program with an empty env env -i ./a.out i wont be able to get the terminal type i need to use the termcap…
Mickael_42
  • 33
  • 6
-3
votes
3 answers

PHP use $_ENV instead of $_SESSION

Is the any danger in using $_ENV to hold global script variables rather than using $_SESSION? I understand the difference between the 2 superglobals but not sure of the impact of using $_ENV over $_SESSION? Does $_SESSION provide more security?
ws8
  • 107
  • 1
  • 7
1 2 3
14
15