how to use cron???<已解决>

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
hackem
帖子: 258
注册时间: 2006-10-19 21:42
来自: inside
联系:

how to use cron???<已解决>

#1

帖子 hackem » 2006-11-23 12:33

I want use the cron command halt computer,but use " crontab -e"
I don't understand how to save the text.
Hot to save the text??
附件
Screenshot-1.png
上次由 hackem 在 2007-01-13 21:07,总共编辑 1 次。
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2006-11-23 12:52

Ctrl + o 保存,Ctrl + x 退出,屏幕下面写着呢。
头像
hackem
帖子: 258
注册时间: 2006-10-19 21:42
来自: inside
联系:

#3

帖子 hackem » 2006-11-23 21:04

but why not is into the vim or vi?
then,press "esc" and "wq" ??
jyq011
帖子: 103
注册时间: 2006-07-18 11:44

#4

帖子 jyq011 » 2006-11-23 21:14

因为你用的是nano,也是ubuntu默认的,你可以用update-alternatives --config editor 把默认编辑器改为vim
头像
hackem
帖子: 258
注册时间: 2006-10-19 21:42
来自: inside
联系:

#5

帖子 hackem » 2006-11-24 12:35

I can't change the selection....................


ning@ning-desktop:/usr/share/xmms$ update-alternatives --config editor

There are 3 alternatives which provide `editor'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/vim
2 /bin/ed
*+ 3 /bin/nano

Press enter to keep the default[*], or type selection number: 1
Using `/usr/bin/vim' to provide `editor'.
update-alternatives: unable to make /etc/alternatives/editor.dpkg-tmp a symlink to /usr/bin/vim: Permission denied
ning@ning-desktop:/usr/share/xmms$


[/img]
jyq011
帖子: 103
注册时间: 2006-07-18 11:44

#6

帖子 jyq011 » 2006-11-24 18:13

hackem 写了:I can't change the selection....................


ning@ning-desktop:/usr/share/xmms$ update-alternatives --config editor

There are 3 alternatives which provide `editor'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/vim
2 /bin/ed
*+ 3 /bin/nano

Press enter to keep the default[*], or type selection number: 1
Using `/usr/bin/vim' to provide `editor'.
update-alternatives: unable to make /etc/alternatives/editor.dpkg-tmp a symlink to /usr/bin/vim: Permission denied
ning@ning-desktop:/usr/share/xmms$


[/img]
sduo update-alternatives --config editor
头像
hackem
帖子: 258
注册时间: 2006-10-19 21:42
来自: inside
联系:

#7

帖子 hackem » 2006-11-24 22:56

thank you for your help
回复