getenv Questions

2

Solved

Edit: as far as I can tell, my question is because of a defect in PHP. I've copied this question to the PHP bug tracker here: https://bugs.php.net/bug.php?id=74143 and plan to try and implement a f...
Kaltman asked 21/2, 2017 at 23:16

2

Solved

I am trying to run the simple below snippet port = int(os.getenv('PORT')) print("Starting app on port %d" % port) I can understand the PORT is s string but I need to cast to a int. Why I am get...
Clerc asked 9/5, 2020 at 13:31

1

When I used this image: node:6.11.0-alpine to run my service (use GRPC), then keep getting these warnings: D0622 06:52:01.170502843 1 env_linux.c:66] Warning: insecure environment read function 'g...
Functionalism asked 22/6, 2017 at 7:15

2

Solved

getenv() in my C++ apache/cgi gives me weird things, then I checked the environ inside /proc/${PID_OF_THE_RUNNING_PROCESS}, they did not match, which I think they should, I am wondering what was wr...
Frisian asked 15/5, 2018 at 11:33

2

Solved

I'm using MSVC to compile some C code which uses standard-library functions, such as getenv(), sprintf and others, with /W3 set for warnings. I'm told by MSVC that: 'getenv': This function or va...

2

Solved

I can't seem to get my code to respond to custom environment variables so I wrote a piece of code to test it. os.getenv is not pulling the environment variables that I've set in BASH into my ...
Sized asked 21/11, 2016 at 19:54

4

Solved

Background I have an Apache/2.2.15 (Win32) with PHP/5.3.2 set up, handling authentication. <Directory /usr/www/myhost/private> # core authentication and mod_auth_basic configuration # for...
Spinach asked 29/11, 2010 at 22:48

1

When I set an environment variable launchctl setenv FOO test I can fetch the value by launchctl getenv FOO which returns me 'test', but a simple echo $FOO doesn't substitute, the result is...
Homogenetic asked 20/11, 2014 at 16:52

3

Solved

I am trying to get the number of columns and lines in my program. I am using the following code to do so: ... char *cols = getenv("COLUMNS"); printf("cols: %s\n", cols); char *lines = getenv("LI...
Despiteful asked 23/3, 2014 at 7:42

1

Solved

I'm trying to change the LD_LIBRARY_PATH from my C++ program. I'm able to get its value using getenv("LD_LIBRARY_PATH") and set its value using setenv() (and I know that this is working, because wh...
Sennight asked 12/10, 2013 at 18:53

4

I am trying to write C code which makes use of some ENV variables in a UNIX environment. The question is: Could reading variables (for example getenv()) cause buffer overflow? Moreover, how can I f...
Windermere asked 22/2, 2013 at 23:8

1

I have a complex piece of software I am not able to post, nor do I have a concrete working example. I will try to explain the problem, maybe someone encountered this before. On the Linux sh...
Weswesa asked 11/9, 2012 at 10:10

2

Solved

Should I free the memory allocated for the char array, pointer to which is returned by the char * getenv( char * ) function? And which way - C free() or C+ delete []? If no - why? I mean: char * ...
Urata asked 14/8, 2010 at 12:44
1

© 2022 - 2024 — McMap. All rights reserved.