Crontab -e is empty - urgent

All those commands that we don't really use very often, but that we should ! Documented or not, they worth it !
Post Reply
jpissot
Member
Posts: 184
Joined: 22 Dec 2008 10:32

Crontab -e is empty - urgent

Post by jpissot »

HI,

I have tried to add an crontab to restart a card but I have killed the temporary file.

The file mtcl.cron is correct but when I launched crontab -e, the VI is empty (0 line).

How can I do to have a functional "crontab -e" command? Reboot?

Thanks
User avatar
alex
Senior Member
Posts: 1458
Joined: 06 Jul 2004 07:27
Contact:

Re: Crontab -e is empty - urgent

Post by alex »

Something like this?
(2)demo71> crontab -l
no crontab for mtcl
(2)demo71>
(2)demo71>
(2)demo71> su
Password:

[root@demo71 mtcl]# crontab -u mtcl mtcl.cron
[root@demo71 mtcl]# exit
exit
(2)demo71> crontab -l
PATH = .:/DHS3bin/oneshot/mtcl:/usr/bin/rsh2ssh:/usr/local/bin:/bin:/usr/bin:/usr/netadm/bin:/DHS3bin/com:/DHS3bin/tel:/DHS3bin/servers:/DHS3bin/downbin:/DHS3bin/oneshot/mtcl:/DHS3bin/incid:/DHS3bin/fab:/DHS3bin/x25:/sbin:/usr/sbin
1 0 * * * /DHS3bin/oneshot/mtcl/tool setdate >/tmpd/term_date.out 2>/tmpd/term_date.errs
30 1 * * * /DHS3bin/servers/fnclrpt -r >/tmpd/fnclrpt.out 2>/tmpd/fnclrpt.errs
If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
Post Reply

Return to “Usefull commands”