Profetas said:
How can I use shell cmds with vars?
I would like to execute
system("cd var_path");
where the var_path is a variable that has the path.
is there any other way that enables me to use vars?
thanks
You question is OS specific, and as I have been told,
is off topic for this list, which appears to dig deep
into ISO C99:
http://www.open-std.org/jtc1/sc22/wg14/
which is OS independent.
Nevertheless, if you are talking about a executing a file,
here's the best example I could find for Unix:
http://www.gnu.org/software/libc/ma...reation-Example.html#Process Creation Example
Read up from the example. It explains all the types and functions.
If you want to learn more about your computer, mudge wrote a great
article on creating a buffer overflow that shows the use of an exec()
function and then converts it to assembly and finally to op codes. It
a great read if you want to learn more about how instructions are executed.
Here's a link to that article:
http://www.insecure.org/stf/mudge_buffer_overflow_tutorial.html
I do not code windows, so I don't have a clue as to how to help you there.
Cheers,
Brian