top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do you view the PATH?

0 votes
147 views
How do you view the PATH?
posted Jul 25, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

In C code try something like

path = getenv("PATH");

syntax of getenv

char *getenv(const char *name)

In Linux shell you can try echo $PATH

answer Jul 25, 2014 by Salil Agrawal
Similar Questions
+4 votes

Assume we have three threads and in this case how can we change the priority of threads. If it is possible then please explain with example.

+4 votes

in case if is it possible, how you can change and pls explain with some example.

+3 votes
0 votes

How do you pass vars to rpmbuild for definition?

eg: rpmbuild --define '"${_definition2}"'

I've been fiddling with ways to escape, but none is fricking working.. I mean, rpmbuild rushes to work(no errors nor failure) so if you try just command line do not believe it, because later as it executes %if you will see process does not see these definitions.

...