1 2 3 4 5 6 7 8 9
#!/bin/bash if [ ! -f /etc/avnt/core_dump_ok ] ;then echo core dump start; exit 0; else echo core dump close; exit 1; fi