seacnboy 发表于 2011-10-20 11:47

crontab -e 命令显示不正确

> su
Password:
# crontab -l
#ident"@(#)root       1.21    04/03/23 SMI"
#
# The root crontab should be used to perform accounting data collection.
#
#
10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___
5 5 * * 5 /opt/SUNWexplo/bin/explorer -q -e # SUNWexplo
# crontab -e
538
^X
?
^C
?
#
?

请问这是什么情况,如何解决,谢谢!

非凡公子 发表于 2011-10-20 11:59

本帖最后由 非凡公子 于 2011-10-20 12:01 编辑

EDITOR=vi;export EDITOR
crontab -e
默认的编辑器是 ex 相当的古老.

seacnboy 发表于 2011-10-20 12:01

回复 2# 非凡公子


    谢谢。就这样搞定

byuq 发表于 2011-10-20 12:04

EDITOR=vi
export EDITOR
TERM=vt100
export TERM

财版 发表于 2011-10-20 12:39

2L学习了:em27:

yiguihuo 发表于 2011-10-20 14:52

直接修改指定用户的配置文件
比如root用户
vi /var/spool/cron/crontabs/root

icyfish28 发表于 2011-10-20 16:56

直接修改指定用户的配置文件
比如root用户
vi /var/spool/cron/crontabs/root
yiguihuo 发表于 2011-10-20 14:52 http://bbs.chinaunix.net/images/common/back.gif


    This is not recommended.

doni 发表于 2011-10-20 16:59

直接修改指定用户的配置文件
比如root用户
vi /var/spool/cron/crontabs/root
yiguihuo 发表于 2011-10-20 14:52 http://bbs.chinaunix.net/images/common/back.gif


    直接修改后,需要重启cron服务
页: [1]
查看完整版本: crontab -e 命令显示不正确