Assume that my open file limit is 1024 per process,
Then how to reproduce Too Many open file error in shell script?
#!/bin/bash
a=0
while [ "$a" -lt 10 ]
do
echo "Welcome $i times"
a=`expr $a + 1`
tail -f /dev/null > myfile$a &
done
I tried above, but it opens 10 files in 10 different processes.