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.
//DepsiBob
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.
//DepsiBob