bujinshuo 发表于 2010-10-14 12:12:58

crontab –e 无效

crontab –e输入这个命令无效请问怎么解决

licess 发表于 2010-10-14 14:03:28

回复 1# 的帖子

没有安装crontab,centos执行yum install vixie-cron crontab 安装
debian执行:apt-get install cron

bujinshuo 发表于 2010-10-14 17:52:56

# yum install vixie-cron crontab
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: mirror.nwresd.org
* base: mirror.team-cymru.org
* extras: mirror.stanford.edu
* updates: mirror.stanford.edu
addons                                                   |951 B   00:00
base                                                   | 2.1 kB   00:00
extras                                                   | 2.1 kB   00:00
extras/primary_db                                        | 188 kB   00:00
updates                                                | 1.9 kB   00:00
updates/primary_db                                       | 650 kB   00:00
Setting up Install Process
No package crontab available.
Resolving Dependencies
--> Running transaction check
---> Package vixie-cron.i386 4:4.1-77.el5_4.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package            Arch         Version                     Repository    Size
================================================================================
Installing:
vixie-cron         i386         4:4.1-77.el5_4.1            base          79 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 79 k
Is this ok : y
Downloading Packages:
vixie-cron-4.1-77.el5_4.1.i386.rpm                     |79 kB   00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing   : vixie-cron                                             1/1

Installed:
vixie-cron.i386 4:4.1-77.el5_4.1

Complete!
# crontab –e
–e: No such file or directory

bujinshuo 发表于 2010-10-14 17:53:15

军哥看看这个是什么情况安装了需要重启么?

licess 发表于 2010-10-14 20:20:21

回复 4# 的帖子

yum install crontab试试

bujinshuo 发表于 2010-10-14 20:39:52

# yum install crontab
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.nwresd.org
* base: mirror.team-cymru.org
* extras: mirror.stanford.edu
* updates: mirror.stanford.edu
addons                                                   |951 B   00:00
base                                                   | 2.1 kB   00:00
extras                                                   | 2.1 kB   00:00
updates                                                | 1.9 kB   00:00
Setting up Install Process
No package crontab available.
Nothing to do
# crontab –e
–e: No such file or directory


还是不行啊

licess 发表于 2010-10-14 22:12:12

回复 6# 的帖子

crontab -e 应该是你输入的不是英文下面的-你输的是–

bujinshuo 发表于 2010-10-14 22:48:22

居然犯了这么低级的错误不好意思问题解决了 谢谢
页: [1]
查看完整版本: crontab –e 无效