1833420 Members
2788 Online
110052 Solutions
New Discussion

Re: Deleting crontab

 
Filosofo
Regular Advisor

Deleting crontab

Hi all,
While I was editing the crontab, /var it has gone in full. When I have tried to see the content of the crontab was empty. Is possible that the filling of /var has made that mine crontab has been cancelled.
I hope that you can help me


thanks

Filo
Sistem engeneer expert
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Deleting crontab

You lost crontab becuase /var was full.

its gone and can be restored from backup.

First, you must clear space on the /var filesystem and once there is space, you can build a new crontab file or restore it from backup.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Filosofo
Regular Advisor

Re: Deleting crontab

OK thanks Steven,
but as it never happens this?

Thanks

By Filo
Sistem engeneer expert
Fred Ruffet
Honored Contributor

Re: Deleting crontab

Once space is freed, you will need to resore a file named as the user in /var/spool/cron/crontabs.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
RAC_1
Honored Contributor

Re: Deleting crontab

Now you understand what has happened to that file. For editing crontabs, I always follow following procedure.

crontab -l "user_name" > /tmp/some_file

vi /tmp/some_file

crontab /tmp/some_file "username"

Anil
There is no substitute to HARDWORK