cron 的疑问??

为当前最终发行版之前的所有版本提供支持
回复
greenwoodboy
帖子: 88
注册时间: 2005-04-15 15:31
送出感谢: 0
接收感谢: 0

cron 的疑问??

#1

帖子 greenwoodboy » 2006-02-22 13:01

我写了个/home/google/wakeup.sh

代码: 全选

#!/bin/bash
mp3blaster /music/01.mp3

在命令行执行该文件可以打开mp3

但我加入到cron 总就不行了

crontab -e

代码: 全选


*/5 * * * * /home/google/wakeup.sh 

保存退出,没有反映,查看log.说是出错了,说是unknow reason

请高手帮忙下
greenwoodboy
帖子: 88
注册时间: 2005-04-15 15:31
送出感谢: 0
接收感谢: 0

#2

帖子 greenwoodboy » 2006-02-23 21:03

怎么 没有 人帮忙吗??
greenwoodboy
帖子: 88
注册时间: 2005-04-15 15:31
送出感谢: 0
接收感谢: 0

#3

帖子 greenwoodboy » 2006-02-24 0:51

这时系统的邮件

From ckj@kde.3322.org Fri Feb 24 00:47:01 2006
Return-Path: <ckj@kde.3322.org>
X-Original-To: ckj
Delivered-To: ckj@kde.3322.org
Received: by ubuntu (Postfix, from userid 1000)
id A1E866B635; Fri, 24 Feb 2006 00:47:01 +0800 (CST)
From: root@kde.3322.org (Cron Daemon)
To: ckj@kde.3322.org
Subject: Cron <ckj@ubuntu> /home/ckj/wakeup.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/ckj>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=ckj>
Message-Id: <20060223164701.A1E866B635@ubuntu>
Date: Fri, 24 Feb 2006 00:47:01 +0800 (CST)
Status: O

Error opening terminal: unknown.

From ckj@kde.3322.org Fri Feb 24 00:49:01 2006
Return-Path: <ckj@kde.3322.org>
X-Original-To: ckj
Delivered-To: ckj@kde.3322.org
Received: by ubuntu (Postfix, from userid 1000)
id BB9CE6B635; Fri, 24 Feb 2006 00:49:01 +0800 (CST)
From: root@kde.3322.org (Cron Daemon)
To: ckj@kde.3322.org
Subject: Cron <ckj@ubuntu> /home/ckj/wakeup.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/ckj>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=ckj>
Message-Id: <20060223164901.BB9CE6B635@ubuntu>
Date: Fri, 24 Feb 2006 00:49:01 +0800 (CST)

Error opening terminal: unknown.
回复

回到 “老旧版本支持”