[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: removing the core file...



Hi Gaurav,

Try this script.

#!/usr/bin/sh
cd
corefiles=`find . -name core`
if [ $corefiles ]
then
     rm $corefiles
fi

If your machine is ON for always(server) then you can call this script from
cron. You can schedule for midnight. To know more about cron see man crontab.

Regards,
Rajasankar.


Gaurav Bhatnagar wrote:

> Hi all
> I would like to make some additons to my .bashrc file to ensure that
> everytime i login if any core file exists in my home directory then it gets
> deleted by itself. I cud have simply added
> "rm core" but then when a core doesnt exist it will give an unnecssary
> error!
> One more question, if i am working in Xwindows and i have no xterm , rxvt
> etc opened then if somebody sends me a talk request what happens to it..i
> mean do I come to know of the request?
> TIA
> Gaurav
>
> --------------------------------------------------------------------
> For more information on Linux in India visit http://www.linux-india.org/
> The Linux India mailing list does not accept postings in HTML format.




- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------