comm.tests 449 B

1234567891011121314151617181920
  1. {
  2. echo "#!$THIS_SH"
  3. echo 'procdir=/proc/$$'
  4. #echo 'echo " /proc/N/exe: $(basename $(readlink $procdir/exe))"'
  5. echo 'echo " /proc/N/comm: $(cat $procdir/comm)"'
  6. } >SCRIPT.sh
  7. chmod 755 SCRIPT.sh
  8. # comm field was wrong if CONFIG_FEATURE_PREFER_APPLETS=y
  9. echo './SCRIPT.sh:'
  10. ./SCRIPT.sh
  11. # comm field was wrong if CONFIG_FEATURE_PREFER_APPLETS=y
  12. echo 'exec ./SCRIPT.sh:'
  13. (exec ./SCRIPT.sh)
  14. echo 'sh ./SCRIPT.sh:'
  15. $THIS_SH ./SCRIPT.sh
  16. rm SCRIPT.sh