Can I put execl command output into a file?
I have a problem. I need to put the output from vmstat into a file, however vmstat doesn't want to go into a file!
Ok, I use execl("blah", "blah", blah) to get vmstat to output to the screen, but no such luck when I try using fprintf(in, "", (execl(...))) on the crazy m.f. I'm finding myself rather annoyed now (understatement of the year), and was wondering if anybody could shed some light on the situation.
Thanks
|