Re: Application coredumps.

Pawel S. Veselov (vps@unicorn.niimm.spb.su)
Wed, 1 Oct 1997 22:10:31 +0300 (MSK)


Hello, Brian!

On Wed, 1 Oct 1997, Brian wrote:

> If you kind of are annoyed of core files that can be quite large then
>what you might try is ln -s /dev/null ~/core..

If you want to get rid of core files and use bash you can use ulimit:

[vps@unicorn]~$ ulimit -c
1000000
[vps@unicorn]~$ ulimit -c 0
[vps@unicorn]~$ cat >test.c
void main(){int *a=0; *a=0;}
[vps@unicorn]~$ gcc -o test test.c
[vps@unicorn]~$ ll core*
ls: core*: No such file or directory
[vps@unicorn]~$ ./test
Segmentation fault
[vps@unicorn]~$ ll core*
ls: core*: No such file or directory
[vps@unicorn]~$

Bye.

--
Whereof one cannot speak, thereof one must be silent.
		-- Wittgenstein

--
    With best of best regards, Pawel S. Veselov (aka Black Angel)
       internet : vps@unicorn.niimm.spb.su ( mail,finger,talk )
                  fidonet : 2:5030/5.412
                schoolnet : 21:9000/412
                 Web page : http://www.niimm.spb.su/~vps/