hello!
I am currently writing my own script and need help on output redirection.as u know 'ls -al > myfile' would write the files in the current directory into the file called myfile.i know about opening a file and writing with fputc but have no idea about how to prevent the command from writing the output to terminal and get the output data to write to file..i hope i could tell my problem and someone could have an idea.