Call Linux Shell Command from within *.c program in userspace?
Is there a way to call a linux shell command from inside your *.c program? For instance, I would like to invoke 'ls *.dat' inside my *.c file, and redirect it's output to a file or to memory. Does anyone have an example for this, or can point me to an example somewhere?
Thanks, Pat//
|