Hi,
Writing a C program in unix, and
I want to do this system call "system (uptime)" and
store the output in a variable in C.
Is it possible ?
Or do I have to do something like this:
"system(uptime > /tmp/file1)" and then read the
file "file1" fom my C program...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.