proc-io-error.sh 219 B

12345678910111213
  1. #!/bin/bash
  2. # set n to 1
  3. n=1
  4. # id=$(ps -e | grep -m 1 "/bin/sh" | awk)
  5. # continue until $n equals 5
  6. while [ $n -le 1000 ]
  7. do
  8. echo "running proc $n times."
  9. cat /proc/724/environ
  10. n=$(( n+1 )) # increments $n
  11. done