Page 1 of 1

Crontab -e is empty - urgent

Posted: 06 Jul 2012 04:57
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

Re: Crontab -e is empty - urgent

Posted: 06 Jul 2012 06:24
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