ause my friend and I wanted to do a little benchmarking to compare the
speed of a bash script and this C script. The bash one is about 100 times
slower, at least ! But, we didn't look too smart after it created over 10,000
subdirectories and that we didn't know how we were going to get rid
> I hate to ask, but... why??? I duplicated this for the sake of making
> sure this script would work, and it brought my system to it's knees.
>
A classic troll technique.
I hate to ask, but... why??? I duplicated this for the sake of making
sure this script would work, and it brought my system to it's knees.
> My problem is that there is now too many subdirectories (10,000) and rm said
> " Memory exhausted " when I type
> rm -rf x
> Doe
printf("%d\n",nbr+=3D1);
> mkdir ("x");
> chdir ("x");
> }
> exit(0);
> }
>
> My problem is that there is now too many subdirectories (10,000) and rm said
> " Memory exhausted " when I type=20
> rm -rf x
> Does anyone know
I made a c program :
#include
main()
{
int nbr=0;
while(1)
{
printf("%d\n",nbr+=1);
mkdir ("x");
chdir ("x");
}
exit(0);
}
My problem is that there is now too many subdirectories (10,000) and rm said
" Memory exhausted
5 matches
Mail list logo