R
robannexs
Hi all,
I'm doing a small c program which backs up the mbr of hard disk.
Currently working in linux.
what i did was :
system("sudo dd if=/dev/sda of=mbr.bin bs=512 count=1");
This is the output i got from console.
1+0 records in
1+0 records out
512 bytes (512 B) copied, 7.6e-05 seconds, 6.7 MB/s
is there anyway I can don't print these messages? or capture them and
do some parsing such that i will be able to print my own messages?
Thanks and best regards,
Jackson
I'm doing a small c program which backs up the mbr of hard disk.
Currently working in linux.
what i did was :
system("sudo dd if=/dev/sda of=mbr.bin bs=512 count=1");
This is the output i got from console.
1+0 records in
1+0 records out
512 bytes (512 B) copied, 7.6e-05 seconds, 6.7 MB/s
is there anyway I can don't print these messages? or capture them and
do some parsing such that i will be able to print my own messages?
Thanks and best regards,
Jackson