execute shell commands:
See man system for more information:
[root@linuxbox C_Programs]# cat test.c
#include
main()
{
printf ("Files More than 10 MB !!\n");
system("find . -size +10000k");
return 0;
}
[root@linuxbox C_Programs]# gcc test.c
[root@linuxbox C_Programs]# ./a.out
Files More than 10 MB !!
./xemacs-packages-extra-20061221-1.fc7.noarch.rpm
No comments:
Post a Comment